diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-08-04 23:00:02 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-08-04 23:00:02 -0400 |
commit | f287caee8094097e3901d9982b6780873b36944f (patch) | |
tree | 045e3a54a228426a4d69d2e53b2f53ec8e2b69f3 /drivers/usb | |
parent | 8b8277a17477de38d8df6783e8221aed55bab300 (diff) |
Input: hid - #if 0 the no longer used hid_find_field_by_usage()
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/input/hid-core.c | 3 | ||||
-rw-r--r-- | drivers/usb/input/hid.h | 1 |
2 files changed, 2 insertions, 2 deletions
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) | |||
1106 | /* | 1106 | /* |
1107 | * Find a report field with a specified HID usage. | 1107 | * Find a report field with a specified HID usage. |
1108 | */ | 1108 | */ |
1109 | 1109 | #if 0 | |
1110 | struct hid_field *hid_find_field_by_usage(struct hid_device *hid, __u32 wanted_usage, int type) | 1110 | struct hid_field *hid_find_field_by_usage(struct hid_device *hid, __u32 wanted_usage, int type) |
1111 | { | 1111 | { |
1112 | struct hid_report *report; | 1112 | struct hid_report *report; |
@@ -1118,6 +1118,7 @@ struct hid_field *hid_find_field_by_usage(struct hid_device *hid, __u32 wanted_u | |||
1118 | return report->field[i]; | 1118 | return report->field[i]; |
1119 | return NULL; | 1119 | return NULL; |
1120 | } | 1120 | } |
1121 | #endif /* 0 */ | ||
1121 | 1122 | ||
1122 | static int hid_submit_out(struct hid_device *hid) | 1123 | static int hid_submit_out(struct hid_device *hid) |
1123 | { | 1124 | { |
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 *); | |||
516 | int hid_set_field(struct hid_field *, unsigned, __s32); | 516 | int hid_set_field(struct hid_field *, unsigned, __s32); |
517 | void hid_submit_report(struct hid_device *, struct hid_report *, unsigned char dir); | 517 | void hid_submit_report(struct hid_device *, struct hid_report *, unsigned char dir); |
518 | void hid_init_reports(struct hid_device *hid); | 518 | void hid_init_reports(struct hid_device *hid); |
519 | struct hid_field *hid_find_field_by_usage(struct hid_device *hid, __u32 wanted_usage, int type); | ||
520 | int hid_wait_io(struct hid_device* hid); | 519 | int hid_wait_io(struct hid_device* hid); |
521 | 520 | ||
522 | 521 | ||