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

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>
include/linux/hid.h
net/bluetooth/hidp/core.c

index 95ce9eec2157d86ee33da753601268e218d7b80e..c8a77b6c7985db9b65f2ab28d714de0ad45f2bcc 100644 (file)
@@ -856,7 +856,6 @@ struct hid_ll_driver {
 };
 
 extern struct hid_ll_driver i2c_hid_ll_driver;
-extern struct hid_ll_driver hidp_hid_driver;
 
 extern bool hid_is_usb(const struct hid_device *hdev);
 
index cc20e706c63914f1879e8eb6fb221f711e8c34b1..c4a741f6ed5c52b51fa7355090946b385a7b7aa8 100644 (file)
@@ -739,7 +739,7 @@ static void hidp_stop(struct hid_device *hid)
        hid->claimed = 0;
 }
 
-struct hid_ll_driver hidp_hid_driver = {
+static struct hid_ll_driver hidp_hid_driver = {
        .parse = hidp_parse,
        .start = hidp_start,
        .stop = hidp_stop,
@@ -748,7 +748,6 @@ struct hid_ll_driver hidp_hid_driver = {
        .raw_request = hidp_raw_request,
        .output_report = hidp_output_report,
 };
-EXPORT_SYMBOL_GPL(hidp_hid_driver);
 
 /* This function sets up the hid device. It does not add it
    to the HID system. That is done in hidp_add_connection(). */