diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2014-04-18 19:22:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-05-05 05:59:49 -0400 |
commit | 56ff6be608659ac06d4e3cc5827476efa29d610f (patch) | |
tree | 8d08e07b518db810f8f6bee492ba7dba08683b84 /include/linux/hid-sensor-hub.h | |
parent | a269b9a0a27675c34c62c4e20c4ffb62054cd51a (diff) |
iio: hid-sensors: Add API to power on/off
Added an API to allow client drivers to turn ON and OFF sensors for
quick read. Added data_read as counting varaible instead of boolean,
so that sensor is powered off only when last user released it.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/hid-sensor-hub.h')
-rw-r--r-- | include/linux/hid-sensor-hub.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/hid-sensor-hub.h b/include/linux/hid-sensor-hub.h index 88d8d636a68f..51f7ccadf923 100644 --- a/include/linux/hid-sensor-hub.h +++ b/include/linux/hid-sensor-hub.h | |||
@@ -189,7 +189,7 @@ struct hid_sensor_common { | |||
189 | struct hid_sensor_hub_device *hsdev; | 189 | struct hid_sensor_hub_device *hsdev; |
190 | struct platform_device *pdev; | 190 | struct platform_device *pdev; |
191 | unsigned usage_id; | 191 | unsigned usage_id; |
192 | bool data_ready; | 192 | atomic_t data_ready; |
193 | struct iio_trigger *trigger; | 193 | struct iio_trigger *trigger; |
194 | struct hid_sensor_hub_attribute_info poll; | 194 | struct hid_sensor_hub_attribute_info poll; |
195 | struct hid_sensor_hub_attribute_info report_state; | 195 | struct hid_sensor_hub_attribute_info report_state; |