diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2019-07-08 09:40:57 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2019-08-12 12:23:00 +0100 |
commit | 6a55331c87d86a7406d8126ae75bdd07244a91b1 (patch) | |
tree | f0c195e8089dc5bf928c331ff5ab4eb138b7683e /drivers/hwmon/scmi-hwmon.c | |
parent | 58ecdf03dbb9ce8f130bc1ac63fcd8f4d72f9c06 (diff) | |
download | linux-6a55331c87d86a7406d8126ae75bdd07244a91b1.tar.gz linux-6a55331c87d86a7406d8126ae75bdd07244a91b1.tar.bz2 linux-6a55331c87d86a7406d8126ae75bdd07244a91b1.zip |
firmware: arm_scmi: Drop async flag in sensor_ops->reading_get
SENSOR_DESCRIPTION_GET provides attributes to indicate if the sensor
supports asynchronous read. Ideally we should be able to read that flag
and use asynchronous reads for any sensors with that attribute set.
In order to add that support, let's drop the async flag passed to
sensor_ops->reading_get and dynamically switch between sync and async
flags based on the attributes as provided by the firmware.
Cc: linux-hwmon@vger.kernel.org
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/hwmon/scmi-hwmon.c')
-rw-r--r-- | drivers/hwmon/scmi-hwmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/scmi-hwmon.c b/drivers/hwmon/scmi-hwmon.c index 0c93fc5ca762..8a7732c0bef3 100644 --- a/drivers/hwmon/scmi-hwmon.c +++ b/drivers/hwmon/scmi-hwmon.c @@ -72,7 +72,7 @@ static int scmi_hwmon_read(struct device *dev, enum hwmon_sensor_types type, const struct scmi_handle *h = scmi_sensors->handle; sensor = *(scmi_sensors->info[type] + channel); - ret = h->sensor_ops->reading_get(h, sensor->id, false, &value); + ret = h->sensor_ops->reading_get(h, sensor->id, &value); if (ret) return ret; |