HID: generic: create one input report per application type
It is not a good idea to try to fit all types of applications in the same input report. There are a lot of devices that are needing the quirk HID_MULTI_INPUT but this quirk doesn't match the actual HID description as it is based on the report ID. Given that most devices with MULTI_INPUT I can think of split nicely the devices inputs into application, it is a good thing to split the devices by default based on this assumption. Also make hid-multitouch following this rule, to not have to deal with too many input created. While we are at it, fix some checkpatch complaints about converting 'unsigned' to 'unsigned int'. Signed-off-by:Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by:
Jiri Kosina <jkosina@suse.cz>
Showing
- drivers/hid/hid-core.c 13 additions, 6 deletionsdrivers/hid/hid-core.c
- drivers/hid/hid-generic.c 15 additions, 0 deletionsdrivers/hid/hid-generic.c
- drivers/hid/hid-gfrm.c 1 addition, 1 deletiondrivers/hid/hid-gfrm.c
- drivers/hid/hid-input.c 17 additions, 0 deletionsdrivers/hid/hid-input.c
- drivers/hid/hid-magicmouse.c 3 additions, 3 deletionsdrivers/hid/hid-magicmouse.c
- include/linux/hid.h 7 additions, 3 deletionsinclude/linux/hid.h
Loading
Please register or sign in to comment