Skip to content

Commit

Permalink
USB HID: remove hid_find_field_by_usage()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Kosina committed Feb 5, 2007
1 parent 7c37914 commit 8235ca3
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions drivers/usb/input/hid-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8235ca3

Please sign in to comment.