mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
HID: input: enforce Invert usage to be processed before InRange
When a device exposes both Invert and InRange, Invert must be processed before InRange. If we keep the order of the device and we process them out of order, InRange will first set BTN_TOOL_PEN, and then Invert will set BTN_TOOL_RUBBER. Userspace knows how to deal with that situation, but fixing it in the kernel is now easier. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Reviewed-by: Ping Cheng <ping.cheng@wacom.com> Acked-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
committed by
Jiri Kosina
parent
bebcc522fb
commit
048cddfd44
@@ -477,7 +477,9 @@ struct hid_field {
|
||||
unsigned report_type; /* (input,output,feature) */
|
||||
__s32 *value; /* last known value(s) */
|
||||
__s32 *new_value; /* newly read value(s) */
|
||||
__s32 *usages_priorities; /* priority of each usage when reading the report */
|
||||
__s32 *usages_priorities; /* priority of each usage when reading the report
|
||||
* bits 8-16 are reserved for hid-input usage
|
||||
*/
|
||||
__s32 logical_minimum;
|
||||
__s32 logical_maximum;
|
||||
__s32 physical_minimum;
|
||||
|
||||
Reference in New Issue
Block a user