diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2008-06-27 14:41:02 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2008-10-14 17:50:56 -0400 |
commit | 6edfa8dc33803a49ad936ead9840e453bee6ca3b (patch) | |
tree | a98640468512a114e356e5634467559fb17c9c69 /drivers/hid/usbhid | |
parent | 93c10132a7ac160df3175b53f7ee857625412165 (diff) |
HID: move reset leds quirk
Move the handling of the leds resetting from the core to
the dell and logitech drivers.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid')
-rw-r--r-- | drivers/hid/usbhid/hid-core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index 0513b60728d3..402ace751271 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c | |||
@@ -591,7 +591,7 @@ static int hid_find_field_early(struct hid_device *hid, unsigned int page, | |||
591 | return -1; | 591 | return -1; |
592 | } | 592 | } |
593 | 593 | ||
594 | static void usbhid_set_leds(struct hid_device *hid) | 594 | void usbhid_set_leds(struct hid_device *hid) |
595 | { | 595 | { |
596 | struct hid_field *field; | 596 | struct hid_field *field; |
597 | int offset; | 597 | int offset; |
@@ -601,6 +601,7 @@ static void usbhid_set_leds(struct hid_device *hid) | |||
601 | usbhid_submit_report(hid, field->report, USB_DIR_OUT); | 601 | usbhid_submit_report(hid, field->report, USB_DIR_OUT); |
602 | } | 602 | } |
603 | } | 603 | } |
604 | EXPORT_SYMBOL_GPL(usbhid_set_leds); | ||
604 | 605 | ||
605 | /* | 606 | /* |
606 | * Traverse the supplied list of reports and find the longest | 607 | * Traverse the supplied list of reports and find the longest |
@@ -860,9 +861,6 @@ static int usbhid_start(struct hid_device *hid) | |||
860 | usbhid_init_reports(hid); | 861 | usbhid_init_reports(hid); |
861 | hid_dump_device(hid); | 862 | hid_dump_device(hid); |
862 | 863 | ||
863 | if (hid->quirks & HID_QUIRK_RESET_LEDS) | ||
864 | usbhid_set_leds(hid); | ||
865 | |||
866 | return 0; | 864 | return 0; |
867 | 865 | ||
868 | fail: | 866 | fail: |