Pull HID fixes from Jiri Kosina: - fixes for various drivers which assume that a HID device is on USB transport, but that might not necessarily be the case, as the device can be faked by uhid. (Greg, Benjamin Tissoires) - fix for spurious wakeups on certain Lenovo notebooks (Thomas Weißschuh) - a few other device-specific quirks * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid: HID: Ignore battery for Elan touchscreen on Asus UX550VE HID: intel-ish-hid: ipc: only enable IRQ wakeup when requested HID: google: add eel USB id HID: add USB_HID dependancy to hid-prodikeys HID: add USB_HID dependancy to hid-chicony HID: bigbenff: prevent null pointer dereference HID: sony: fix error path in probe HID: add USB_HID dependancy on some USB HID drivers HID: check for valid USB device for many HID drivers HID: wacom: fix problems when device is not a valid USB device HID: add hid_is_usb() function to make it simpler for USB detection HID: quirks: Add quirk for the Microsoft Surface 3 type-cover
Showing the changes to include/linux (1 of 36 files). Show all
Unified · Split
| @@ -840,6 +840,11 @@ static inline bool hid_is_using_ll_driver(struct hid_device *hdev, · 839 unmodified lines | ||
| 840 | 840 | return hdev->ll_driver == driver; |
| 841 | 841 | } |
| 842 | 842 | |
| 843 | +static inline bool hid_is_usb(struct hid_device *hdev) | |
| 844 | +{ | |
| 845 | + return hid_is_using_ll_driver(hdev, &usb_hid_driver); | |
| 846 | +} | |
| 847 | + | |
| 843 | 848 | #define PM_HINT_FULLON 1<<5 |
| 844 | 849 | #define PM_HINT_NORMAL 1<<1 |
| 845 | 850 | |