diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2022-12-22 08:10:45 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2023-01-17 15:44:01 +0300 |
commit | 8c3e24065e3d37ee4787e6c72aa0ab6460db7598 (patch) | |
tree | 8edbac6a13919e27e5ae93cb77058841a4523d45 /include/linux/hid.h | |
parent | 2bafbef6ff4eebec93267b060cc6f83f25505b1b (diff) | |
download | linux-8c3e24065e3d37ee4787e6c72aa0ab6460db7598.tar.xz |
HID: usbhid: Make hid_is_usb() non-inline
By making hid_is_usb() a non-inline function the lowlevel usbhid driver
does not have to be exported anymore.
Also mark the argument as const as it is not modified.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: David Rheinsberg <david.rheinsberg@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 1eb5408599cd..c4cf9cea4377 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -866,10 +866,7 @@ static inline bool hid_is_using_ll_driver(struct hid_device *hdev, return hdev->ll_driver == driver; } -static inline bool hid_is_usb(struct hid_device *hdev) -{ - return hid_is_using_ll_driver(hdev, &usb_hid_driver); -} +extern bool hid_is_usb(const struct hid_device *hdev); #define PM_HINT_FULLON 1<<5 #define PM_HINT_NORMAL 1<<1 |