Manual merge with Linus (conflict in drivers/input/misc/wistron_bnts.c)
This commit is contained in:
@@ -893,8 +893,10 @@ static int hid_input_report(int type, struct urb *urb, int interrupt, struct pt_
|
||||
|
||||
size = ((report->size - 1) >> 3) + 1;
|
||||
|
||||
if (len < size)
|
||||
if (len < size) {
|
||||
dbg("report %d is too short, (%d < %d)", report->id, len, size);
|
||||
memset(data + len, 0, size - len);
|
||||
}
|
||||
|
||||
if (hid->claimed & HID_CLAIMED_HIDDEV)
|
||||
hiddev_report_event(hid, report);
|
||||
|
@@ -137,6 +137,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
|
||||
switch (usage->hid & 0xffff) {
|
||||
case 0xba: map_abs(ABS_RUDDER); break;
|
||||
case 0xbb: map_abs(ABS_THROTTLE); break;
|
||||
default: goto ignore;
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user