]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB HID: remove hid_find_field_by_usage()
authorJiri Kosina <jkosina@suse.cz>
Fri, 26 Jan 2007 11:56:16 +0000 (12:56 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 5 Feb 2007 09:00:42 +0000 (10:00 +0100)
The unused hid_find_field_by_usage() function has been commented out for
a pretty long time. Remove it completely.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/usb/input/hid-core.c

index 0392d0e8d020b991aaa844bbf3566e92841d66d7..cc1feb0ef2964605cf06b60b34b22c8cf9e7964e 100644 (file)
@@ -221,23 +221,6 @@ static void hid_irq_in(struct urb *urb)
        }
 }
 
-/*
- * 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;
-       int i;
-
-       list_for_each_entry(report, &hid->report_enum[type].report_list, list)
-               for (i = 0; i < report->maxfield; i++)
-                       if (report->field[i]->logical == wanted_usage)
-                               return report->field[i];
-       return NULL;
-}
-#endif  /*  0  */
-
 static int hid_submit_out(struct hid_device *hid)
 {
        struct hid_report *report;