Skip to content

Commit ebb45d6

Browse files
t-8chJiri Kosina
authored andcommitted
HID: Unexport struct i2c_hid_ll_driver
As there are no external users this implementation detail does not need to be exported. Signed-off-by: Thomas Weißschuh <[email protected]> Reviewed-by: David Rheinsberg <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 9e3c2ef commit ebb45d6

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

drivers/hid/i2c-hid/i2c-hid-core.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ static void i2c_hid_close(struct hid_device *hid)
842842
clear_bit(I2C_HID_STARTED, &ihid->flags);
843843
}
844844

845-
struct hid_ll_driver i2c_hid_ll_driver = {
845+
static struct hid_ll_driver i2c_hid_ll_driver = {
846846
.parse = i2c_hid_parse,
847847
.start = i2c_hid_start,
848848
.stop = i2c_hid_stop,
@@ -851,7 +851,6 @@ struct hid_ll_driver i2c_hid_ll_driver = {
851851
.output_report = i2c_hid_output_report,
852852
.raw_request = i2c_hid_raw_request,
853853
};
854-
EXPORT_SYMBOL_GPL(i2c_hid_ll_driver);
855854

856855
static int i2c_hid_init_irq(struct i2c_client *client)
857856
{

include/linux/hid.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,8 +855,6 @@ struct hid_ll_driver {
855855
bool (*may_wakeup)(struct hid_device *hdev);
856856
};
857857

858-
extern struct hid_ll_driver i2c_hid_ll_driver;
859-
860858
extern bool hid_is_usb(const struct hid_device *hdev);
861859

862860
#define PM_HINT_FULLON 1<<5

0 commit comments

Comments
 (0)