aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/hid.h
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2017-09-05 11:14:10 +0200
committerJiri Kosina <jkosina@suse.cz>2017-09-05 11:14:10 +0200
commitde6c5070ad3956125fe8d407381c1b18f9749f93 (patch)
tree2d75a35d43f1e1a5ac8793eab04d4b5886404dc6 /include/linux/hid.h
parentMerge branch 'for-4.14/upstream' into for-linus (diff)
parentHID: wacom: add USB_HID dependency (diff)
downloadwireguard-linux-de6c5070ad3956125fe8d407381c1b18f9749f93.tar.xz
wireguard-linux-de6c5070ad3956125fe8d407381c1b18f9749f93.zip
Merge branch 'for-4.14/wacom' into for-linus
- name generation improvement for Wacom devices from Jason Gerecke - Kconfig dependency fix for Wacom driver from Arnd Bergmann
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r--include/linux/hid.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index 26759920aa8f..08ab9864d81e 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -780,6 +780,17 @@ struct hid_ll_driver {
int (*idle)(struct hid_device *hdev, int report, int idle, int reqtype);
};
+extern struct hid_ll_driver i2c_hid_ll_driver;
+extern struct hid_ll_driver hidp_hid_driver;
+extern struct hid_ll_driver uhid_hid_driver;
+extern struct hid_ll_driver usb_hid_driver;
+
+static inline bool hid_is_using_ll_driver(struct hid_device *hdev,
+ struct hid_ll_driver *driver)
+{
+ return hdev->ll_driver == driver;
+}
+
#define PM_HINT_FULLON 1<<5
#define PM_HINT_NORMAL 1<<1