Skip to content

Commit 5904a3f

Browse files
westeribentiss
authored andcommitted
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
1 parent ae7fafa commit 5904a3f

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/hid/hid-input.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,7 +1461,8 @@ void hidinput_report_event(struct hid_device *hid, struct hid_report *report)
14611461
}
14621462
EXPORT_SYMBOL_GPL(hidinput_report_event);
14631463

1464-
int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field)
1464+
static int hidinput_find_field(struct hid_device *hid, unsigned int type,
1465+
unsigned int code, struct hid_field **field)
14651466
{
14661467
struct hid_report *report;
14671468
int i, j;
@@ -1476,7 +1477,6 @@ int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int
14761477
}
14771478
return -1;
14781479
}
1479-
EXPORT_SYMBOL_GPL(hidinput_find_field);
14801480

14811481
struct hid_field *hidinput_get_led_field(struct hid_device *hid)
14821482
{

include/linux/hid.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,6 @@ extern void hidinput_disconnect(struct hid_device *);
899899

900900
int hid_set_field(struct hid_field *, unsigned, __s32);
901901
int hid_input_report(struct hid_device *, int type, u8 *, u32, int);
902-
int hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field);
903902
struct hid_field *hidinput_get_led_field(struct hid_device *hid);
904903
unsigned int hidinput_count_leds(struct hid_device *hid);
905904
__s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code);

0 commit comments

Comments
 (0)