]> err.no Git - linux-2.6/commitdiff
Input: hid - #if 0 the no longer used hid_find_field_by_usage()
authorAdrian Bunk <bunk@stusta.de>
Sat, 5 Aug 2006 03:00:02 +0000 (23:00 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Sat, 5 Aug 2006 03:00:02 +0000 (23:00 -0400)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/usb/input/hid-core.c
drivers/usb/input/hid.h

index 2f477a8badabb9962d8c32cbecf70eeb27cdea27..e3cd0321c59c7185f5109386747b67215a71ac0a 100644 (file)
@@ -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)
 {
index 3dae8a949de28c084e7d7d9ea1168fcf6a29ddd6..b03fd9b075df7cf836112f06531d199ef140c40b 100644 (file)
@@ -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);