HID: logitech-hidpp: limit visibility of init/deinit functions
authorJiri Kosina <jkosina@suse.cz>
Thu, 28 Jan 2016 13:28:39 +0000 (14:28 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 28 Jan 2016 13:28:39 +0000 (14:28 +0100)
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>
drivers/hid/hid-logitech-hidpp.c

index 2869bbff08997fa249275810673a437fbb7959b6..2e2515a4c070eac305a834c9229d0e1fa27f722f 100644 (file)
@@ -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;