]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
HID: add hid_is_usb() function to make it simpler for USB detection
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Dec 2021 18:35:01 +0000 (19:35 +0100)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 3 Feb 2022 17:57:41 +0000 (18:57 +0100)
commit46fec48c9365c127d5c1263c5506833534e11ad4
tree8e33c18b8b03d5b7058b067da92c03695bcd62f5
parent5f8a9e2fa505911f1fc8c7c246c0994e8c353503
HID: add hid_is_usb() function to make it simpler for USB detection

BugLink: https://bugs.launchpad.net/bugs/1957007
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/hid/hid-asus.c
drivers/hid/hid-logitech-dj.c
drivers/hid/hid-u2fzero.c
drivers/hid/hid-uclogic-params.c
drivers/hid/wacom_sys.c
include/linux/hid.h