diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2014-04-19 00:22:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-05-05 10:59:45 +0100 |
commit | 9030924510a9e7d4b7d218749533840075879f2f (patch) | |
tree | 52edcc0477c21fed5c1976199c9786e52828cf4d /include/linux/hid-sensor-hub.h | |
parent | 5d02edfc3957446fd625c0b018e14c6631a791f4 (diff) | |
download | blackbird-op-linux-9030924510a9e7d4b7d218749533840075879f2f.tar.gz blackbird-op-linux-9030924510a9e7d4b7d218749533840075879f2f.zip |
iio: hid-sensors: Add api to get poll value
Added interface to get poll value in milli-seconds. This value is
changed by changing sampling frequency. This API allows clients
to wait for at least some poll milli seconds before reading a new sample.
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, 2 insertions, 0 deletions
diff --git a/include/linux/hid-sensor-hub.h b/include/linux/hid-sensor-hub.h index 89626b23c246..88d8d636a68f 100644 --- a/include/linux/hid-sensor-hub.h +++ b/include/linux/hid-sensor-hub.h @@ -227,4 +227,6 @@ int hid_sensor_format_scale(u32 usage_id, struct hid_sensor_hub_attribute_info *attr_info, int *val0, int *val1); +s32 hid_sensor_read_poll_value(struct hid_sensor_common *st); + #endif |