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.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/hid-sensor-hub.h b/include/linux/hid-sensor-hub.h
index 32ba45158d39..a265af294ea4 100644
--- a/include/linux/hid-sensor-hub.h
+++ b/include/linux/hid-sensor-hub.h
@@ -47,11 +47,13 @@ struct hid_sensor_hub_attribute_info {
47 * @hdev: Stores the hid instance. 47 * @hdev: Stores the hid instance.
48 * @vendor_id: Vendor id of hub device. 48 * @vendor_id: Vendor id of hub device.
49 * @product_id: Product id of hub device. 49 * @product_id: Product id of hub device.
50 * @ref_cnt: Number of MFD clients have opened this device
50 */ 51 */
51struct hid_sensor_hub_device { 52struct hid_sensor_hub_device {
52 struct hid_device *hdev; 53 struct hid_device *hdev;
53 u32 vendor_id; 54 u32 vendor_id;
54 u32 product_id; 55 u32 product_id;
56 int ref_cnt;
55}; 57};
56 58
57/** 59/**
@@ -74,6 +76,22 @@ struct hid_sensor_hub_callbacks {
74 void *priv); 76 void *priv);
75}; 77};
76 78
79/**
80* sensor_hub_device_open() - Open hub device
81* @hsdev: Hub device instance.
82*
83* Used to open hid device for sensor hub.
84*/
85int sensor_hub_device_open(struct hid_sensor_hub_device *hsdev);
86
87/**
88* sensor_hub_device_clode() - Close hub device
89* @hsdev: Hub device instance.
90*
91* Used to clode hid device for sensor hub.
92*/
93void sensor_hub_device_close(struct hid_sensor_hub_device *hsdev);
94
77/* Registration functions */ 95/* Registration functions */
78 96
79/** 97/**