From: Adrian Bunk Date: Sat, 5 Aug 2006 03:00:02 +0000 (-0400) Subject: Input: hid - #if 0 the no longer used hid_find_field_by_usage() X-Git-Tag: firefly_0821_release~32749^2~24 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f287caee8094097e3901d9982b6780873b36944f;p=firefly-linux-kernel-4.4.55.git Input: hid - #if 0 the no longer used hid_find_field_by_usage() Signed-off-by: Adrian Bunk Signed-off-by: Andrew Morton Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/usb/input/hid-core.c b/drivers/usb/input/hid-core.c index 2f477a8badab..e3cd0321c59c 100644 --- a/drivers/usb/input/hid-core.c +++ b/drivers/usb/input/hid-core.c @@ -1106,7 +1106,7 @@ int hid_set_field(struct hid_field *field, unsigned offset, __s32 value) /* * Find a report field with a specified HID usage. */ - +#if 0 struct hid_field *hid_find_field_by_usage(struct hid_device *hid, __u32 wanted_usage, int type) { struct hid_report *report; @@ -1118,6 +1118,7 @@ struct hid_field *hid_find_field_by_usage(struct hid_device *hid, __u32 wanted_u return report->field[i]; return NULL; } +#endif /* 0 */ static int hid_submit_out(struct hid_device *hid) { diff --git a/drivers/usb/input/hid.h b/drivers/usb/input/hid.h index 3dae8a949de2..b03fd9b075df 100644 --- a/drivers/usb/input/hid.h +++ b/drivers/usb/input/hid.h @@ -516,7 +516,6 @@ void hid_close(struct hid_device *); int hid_set_field(struct hid_field *, unsigned, __s32); void hid_submit_report(struct hid_device *, struct hid_report *, unsigned char dir); void hid_init_reports(struct hid_device *hid); -struct hid_field *hid_find_field_by_usage(struct hid_device *hid, __u32 wanted_usage, int type); int hid_wait_io(struct hid_device* hid);