summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-input.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2021-12-10 13:11:37 +0200
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>2021-12-14 10:08:45 +0100
commit5904a3f9d756f108279f8c5b8f17ca6ddfb28d24 (patch)
tree9734dc75a997782731fb2d25348cf581b5afe441 /drivers/hid/hid-input.c
parentae7fafa6896ae762ff489a5e71c8e5fabfeb61ee (diff)
downloadlinux-stable-5904a3f9d756f108279f8c5b8f17ca6ddfb28d24.tar.gz
linux-stable-5904a3f9d756f108279f8c5b8f17ca6ddfb28d24.tar.bz2
linux-stable-5904a3f9d756f108279f8c5b8f17ca6ddfb28d24.zip
HID: input: Make hidinput_find_field() static
This function is not called outside of hid-input.c so we can make it static. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Tero Kristo <tero.kristo@linux.intel.com> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Link: https://lore.kernel.org/r/20211210111138.1248187-5-tero.kristo@linux.intel.com
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r--drivers/hid/hid-input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c
index 93bbc33da3c3..4186143da7c6 100644
--- a/drivers/hid/hid-input.c
+++ b/drivers/hid/hid-input.c
@@ -1461,7 +1461,8 @@ void hidinput_report_event(struct hid_device *hid, struct hid_report *report)
}
EXPORT_SYMBOL_GPL(hidinput_report_event);
-int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field)
+static int hidinput_find_field(struct hid_device *hid, unsigned int type,
+ unsigned int code, struct hid_field **field)
{
struct hid_report *report;
int i, j;
@@ -1476,7 +1477,6 @@ int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int
}
return -1;
}
-EXPORT_SYMBOL_GPL(hidinput_find_field);
struct hid_field *hidinput_get_led_field(struct hid_device *hid)
{