HID: Unexport struct usb_hid_driver
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 22 Dec 2022 05:10:47 +0000 (05:10 +0000)
committerJiri Kosina <jkosina@suse.cz>
Tue, 17 Jan 2023 12:44:01 +0000 (13:44 +0100)
As no external users remain this implementation detail does not need to
be exported anymore.

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>
drivers/hid/usbhid/hid-core.c
include/linux/hid.h

index 54b0280d0073a920854d8c915a31f27105019ba8..4143bab3380a0016a376096fd901d5b06352be72 100644 (file)
@@ -1318,7 +1318,7 @@ static bool usbhid_may_wakeup(struct hid_device *hid)
        return device_may_wakeup(&dev->dev);
 }
 
-struct hid_ll_driver usb_hid_driver = {
+static struct hid_ll_driver usb_hid_driver = {
        .parse = usbhid_parse,
        .start = usbhid_start,
        .stop = usbhid_stop,
@@ -1332,7 +1332,6 @@ struct hid_ll_driver usb_hid_driver = {
        .idle = usbhid_idle,
        .may_wakeup = usbhid_may_wakeup,
 };
-EXPORT_SYMBOL_GPL(usb_hid_driver);
 
 bool hid_is_usb(const struct hid_device *hdev)
 {
index 4dec31e8eadb506067232b3142abbe1628c463f2..5b10c65e2bf6bcff6a7f8fc88ce49e8f34f8007e 100644 (file)
@@ -858,7 +858,6 @@ struct hid_ll_driver {
 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;
 
 extern bool hid_is_usb(const struct hid_device *hdev);