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>
This commit is contained in:

committed by
Jonathan Cameron

parent
5d02edfc39
commit
9030924510
@@ -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
|
||||
|
Reference in New Issue
Block a user