diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-01 21:35:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-14 12:04:47 +0300 |
commit | 28d8244f3ec961a11bfb4ad83cdc48ff9b8c47a7 (patch) | |
tree | 777b27d325a6664c2599e66fa3ba22650b993472 /include/linux/bcm963xx_nvram.h | |
parent | e1e84bd83f1d2eb4d37ad1b62aa67c29665e1184 (diff) | |
download | linux-28d8244f3ec961a11bfb4ad83cdc48ff9b8c47a7.tar.xz |
HID: add hid_is_usb() function to make it simpler for USB detection
commit f83baa0cb6cfc92ebaf7f9d3a99d7e34f2e77a8a upstream.
A number of HID drivers already call hid_is_using_ll_driver() but only
for the detection of if this is a USB device or not. Make this more
obvious by creating hid_is_usb() and calling the function that way.
Also converts the existing hid_is_using_ll_driver() functions to use the
new call.
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: linux-input@vger.kernel.org
Cc: stable@vger.kernel.org
Tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20211201183503.2373082-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/bcm963xx_nvram.h')
0 files changed, 0 insertions, 0 deletions