Skip to content

Commit af2e628

Browse files
author
Jiri Kosina
committed
HID: logitech-hidpp: limit visibility of init/deinit functions
hidpp_ff_init() and hidpp_ff_deinit() are not used outside of hid-logitech-hidpp.c, so let's make them static. Signed-off-by: Jiri Kosina <[email protected]>
1 parent ff21a63 commit af2e628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/hid/hid-logitech-hidpp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ static void hidpp_ff_destroy(struct ff_device *ff)
12261226
kfree(data->effect_ids);
12271227
}
12281228

1229-
int hidpp_ff_init(struct hidpp_device *hidpp, u8 feature_index)
1229+
static int hidpp_ff_init(struct hidpp_device *hidpp, u8 feature_index)
12301230
{
12311231
struct hid_device *hid = hidpp->hid_dev;
12321232
struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list);
@@ -1337,7 +1337,7 @@ int hidpp_ff_init(struct hidpp_device *hidpp, u8 feature_index)
13371337
return 0;
13381338
}
13391339

1340-
int hidpp_ff_deinit(struct hid_device *hid)
1340+
static int hidpp_ff_deinit(struct hid_device *hid)
13411341
{
13421342
struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list);
13431343
struct input_dev *dev = hidinput->input;

0 commit comments

Comments
 (0)