Skip to content

Commit

Permalink
HID: logitech-hidpp: limit visibility of init/deinit functions
Browse files Browse the repository at this point in the history
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 <jkosina@suse.cz>
  • Loading branch information
Jiri Kosina committed Jan 28, 2016
1 parent ff21a63 commit af2e628
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/hid/hid-logitech-hidpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ static void hidpp_ff_destroy(struct ff_device *ff)
kfree(data->effect_ids);
}

int hidpp_ff_init(struct hidpp_device *hidpp, u8 feature_index)
static int hidpp_ff_init(struct hidpp_device *hidpp, u8 feature_index)
{
struct hid_device *hid = hidpp->hid_dev;
struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list);
Expand Down Expand Up @@ -1337,7 +1337,7 @@ int hidpp_ff_init(struct hidpp_device *hidpp, u8 feature_index)
return 0;
}

int hidpp_ff_deinit(struct hid_device *hid)
static int hidpp_ff_deinit(struct hid_device *hid)
{
struct hid_input *hidinput = list_entry(hid->inputs.next, struct hid_input, list);
struct input_dev *dev = hidinput->input;
Expand Down

0 comments on commit af2e628

Please sign in to comment.