Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=8235ca3c05076f35d22578e8f530fd374104332a
Commit:     8235ca3c05076f35d22578e8f530fd374104332a
Parent:     7c379146005d277982acde02da44c773de5e7e5a
Author:     Jiri Kosina <[EMAIL PROTECTED]>
AuthorDate: Fri Jan 26 12:56:16 2007 +0100
Committer:  Jiri Kosina <[EMAIL PROTECTED]>
CommitDate: Mon Feb 5 10:00:42 2007 +0100

    USB HID: remove hid_find_field_by_usage()
    
    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 <[EMAIL PROTECTED]>
---
 drivers/usb/input/hid-core.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)

diff --git a/drivers/usb/input/hid-core.c b/drivers/usb/input/hid-core.c
index 0392d0e..cc1feb0 100644
--- a/drivers/usb/input/hid-core.c
+++ b/drivers/usb/input/hid-core.c
@@ -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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to