From 54a45ea3e4c9e74aeca4e052129d76348ee28006 Mon Sep 17 00:00:00 2001 From: Adrian Bunk Date: Fri, 4 Aug 2006 23:00:02 -0400 Subject: [PATCH] --- yaml --- r: 37889 b: refs/heads/master c: f287caee8094097e3901d9982b6780873b36944f h: refs/heads/master i: 37887: 5cb91664a665da84e37cab5a5f398716d8c901a9 v: v3 --- [refs] | 2 +- trunk/drivers/usb/input/hid-core.c | 3 ++- trunk/drivers/usb/input/hid.h | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 0452d6100d67..ed89dacd5351 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8b8277a17477de38d8df6783e8221aed55bab300 +refs/heads/master: f287caee8094097e3901d9982b6780873b36944f diff --git a/trunk/drivers/usb/input/hid-core.c b/trunk/drivers/usb/input/hid-core.c index 2f477a8badab..e3cd0321c59c 100644 --- a/trunk/drivers/usb/input/hid-core.c +++ b/trunk/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/trunk/drivers/usb/input/hid.h b/trunk/drivers/usb/input/hid.h index 3dae8a949de2..b03fd9b075df 100644 --- a/trunk/drivers/usb/input/hid.h +++ b/trunk/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);