diff options
Diffstat (limited to 'include/linux/hid-sensor-hub.h')
-rw-r--r-- | include/linux/hid-sensor-hub.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/hid-sensor-hub.h b/include/linux/hid-sensor-hub.h index b914ca3f57ba..b70cfd7ff29c 100644 --- a/include/linux/hid-sensor-hub.h +++ b/include/linux/hid-sensor-hub.h | |||
@@ -51,13 +51,15 @@ struct hid_sensor_hub_attribute_info { | |||
51 | * @hdev: Stores the hid instance. | 51 | * @hdev: Stores the hid instance. |
52 | * @vendor_id: Vendor id of hub device. | 52 | * @vendor_id: Vendor id of hub device. |
53 | * @product_id: Product id of hub device. | 53 | * @product_id: Product id of hub device. |
54 | * @ref_cnt: Number of MFD clients have opened this device | 54 | * @start_collection_index: Starting index for a phy type collection |
55 | * @end_collection_index: Last index for a phy type collection | ||
55 | */ | 56 | */ |
56 | struct hid_sensor_hub_device { | 57 | struct hid_sensor_hub_device { |
57 | struct hid_device *hdev; | 58 | struct hid_device *hdev; |
58 | u32 vendor_id; | 59 | u32 vendor_id; |
59 | u32 product_id; | 60 | u32 product_id; |
60 | int ref_cnt; | 61 | int start_collection_index; |
62 | int end_collection_index; | ||
61 | }; | 63 | }; |
62 | 64 | ||
63 | /** | 65 | /** |
@@ -218,4 +220,7 @@ int hid_sensor_write_samp_freq_value(struct hid_sensor_common *st, | |||
218 | int hid_sensor_read_samp_freq_value(struct hid_sensor_common *st, | 220 | int hid_sensor_read_samp_freq_value(struct hid_sensor_common *st, |
219 | int *val1, int *val2); | 221 | int *val1, int *val2); |
220 | 222 | ||
223 | int hid_sensor_get_usage_index(struct hid_sensor_hub_device *hsdev, | ||
224 | u32 report_id, int field_index, u32 usage_id); | ||
225 | |||
221 | #endif | 226 | #endif |