diff options
author | Jiri Kosina <jkosina@suse.cz> | 2017-09-05 12:14:10 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-09-05 12:14:10 +0300 |
commit | de6c5070ad3956125fe8d407381c1b18f9749f93 (patch) | |
tree | 2d75a35d43f1e1a5ac8793eab04d4b5886404dc6 /include/linux/hid.h | |
parent | 5c891d5e094c15bd7791dc84749b5239257f5f2d (diff) | |
parent | 9d14201c7444bbdf89413e88d91b73150c3de38b (diff) | |
download | linux-de6c5070ad3956125fe8d407381c1b18f9749f93.tar.xz |
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.h | 11 |
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 |