diff options
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r-- | drivers/hid/hid-input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 725f22ca47fc..e0a0f06ac5ef 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c | |||
@@ -872,7 +872,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel | |||
872 | case 0x2cb: map_key_clear(KEY_KBDINPUTASSIST_ACCEPT); break; | 872 | case 0x2cb: map_key_clear(KEY_KBDINPUTASSIST_ACCEPT); break; |
873 | case 0x2cc: map_key_clear(KEY_KBDINPUTASSIST_CANCEL); break; | 873 | case 0x2cc: map_key_clear(KEY_KBDINPUTASSIST_CANCEL); break; |
874 | 874 | ||
875 | default: goto ignore; | 875 | default: map_key_clear(KEY_UNKNOWN); |
876 | } | 876 | } |
877 | break; | 877 | break; |
878 | 878 | ||
@@ -1215,7 +1215,7 @@ static void hidinput_led_worker(struct work_struct *work) | |||
1215 | return hid->ll_driver->request(hid, report, HID_REQ_SET_REPORT); | 1215 | return hid->ll_driver->request(hid, report, HID_REQ_SET_REPORT); |
1216 | 1216 | ||
1217 | /* fall back to generic raw-output-report */ | 1217 | /* fall back to generic raw-output-report */ |
1218 | len = ((report->size - 1) >> 3) + 1 + (report->id > 0); | 1218 | len = hid_report_len(report); |
1219 | buf = hid_alloc_report_buf(report, GFP_KERNEL); | 1219 | buf = hid_alloc_report_buf(report, GFP_KERNEL); |
1220 | if (!buf) | 1220 | if (!buf) |
1221 | return; | 1221 | return; |