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/hid-logitech.c | |
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/hid-logitech.c')
-rw-r--r-- | drivers/hid/hid-logitech.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hid/hid-logitech.c b/drivers/hid/hid-logitech.c index 732258241c05..df27f9aadf26 100644 --- a/drivers/hid/hid-logitech.c +++ b/drivers/hid/hid-logitech.c | |||
@@ -226,8 +226,6 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id) | |||
226 | 226 | ||
227 | hid_set_drvdata(hdev, (void *)quirks); | 227 | hid_set_drvdata(hdev, (void *)quirks); |
228 | 228 | ||
229 | if (quirks & LG_RESET_LEDS) | ||
230 | hdev->quirks |= HID_QUIRK_RESET_LEDS; | ||
231 | if (quirks & LG_NOGET) | 229 | if (quirks & LG_NOGET) |
232 | hdev->quirks |= HID_QUIRK_NOGET; | 230 | hdev->quirks |= HID_QUIRK_NOGET; |
233 | 231 | ||
@@ -243,6 +241,9 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id) | |||
243 | goto err_free; | 241 | goto err_free; |
244 | } | 242 | } |
245 | 243 | ||
244 | if (quirks & LG_RESET_LEDS) | ||
245 | usbhid_set_leds(hdev); | ||
246 | |||
246 | return 0; | 247 | return 0; |
247 | err_free: | 248 | err_free: |
248 | return ret; | 249 | return ret; |