aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hid-sensor-hub.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/hid-sensor-hub.h')
-rw-r--r--include/linux/hid-sensor-hub.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/hid-sensor-hub.h b/include/linux/hid-sensor-hub.h
index 4c49b041922d..1db332066669 100644
--- a/include/linux/hid-sensor-hub.h
+++ b/include/linux/hid-sensor-hub.h
@@ -206,13 +206,15 @@ int sensor_hub_set_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
206* sensor_hub_get_feature() - Feature get request 206* sensor_hub_get_feature() - Feature get request
207* @report_id: Report id to look for 207* @report_id: Report id to look for
208* @field_index: Field index inside a report 208* @field_index: Field index inside a report
209* @value: Place holder for return value 209* @buffer_size: size of the buffer
210* @buffer: buffer to copy output
210* 211*
211* Used to get a field in feature report. For example this can get polling 212* Used to get a field in feature report. For example this can get polling
212* interval, sensitivity, activate/deactivate state. 213* interval, sensitivity, activate/deactivate state. On success it returns
214* number of bytes copied to buffer. On failure, it returns value < 0.
213*/ 215*/
214int sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id, 216int sensor_hub_get_feature(struct hid_sensor_hub_device *hsdev, u32 report_id,
215 u32 field_index, s32 *value); 217 u32 field_index, int buffer_size, void *buffer);
216 218
217/* hid-sensor-attributes */ 219/* hid-sensor-attributes */
218 220