summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-logitech-hidpp.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2016-01-28 16:28:39 +0300
committerJiri Kosina <jkosina@suse.cz>2016-01-28 16:28:39 +0300
commitaf2e628d6be7a510e2667c3b5358350464d0f5b7 (patch)
tree26dbf0da195e61aa7911ffc04406b718b4b87d54 /drivers/hid/hid-logitech-hidpp.c
parentff21a635dd1a9c6ca378847160897649cdbbfae4 (diff)
downloadlinux-af2e628d6be7a510e2667c3b5358350464d0f5b7.tar.xz
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 <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-logitech-hidpp.c')
-rw-r--r--drivers/hid/hid-logitech-hidpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-logitech-hidpp.c b/drivers/hid/hid-logitech-hidpp.c
index 2869bbff0899..2e2515a4c070 100644
--- a/drivers/hid/hid-logitech-hidpp.c
+++ b/drivers/hid/hid-logitech-hidpp.c
@@ -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);
@@ -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;