HID: input: force generic axis to be mapped to their user space axis
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 25 Aug 2014 17:07:10 +0000 (13:07 -0400)
committerJiri Kosina <jkosina@suse.cz>
Tue, 26 Aug 2014 07:24:45 +0000 (09:24 +0200)
commit79346d620e9de87912de73337f6df8b7f9a46888
tree36d2e3bb4e9f70485a778b3234e324d08ad13bab
parentcee5aa1f81b1e88d8de05df226bfd207041954c2
HID: input: force generic axis to be mapped to their user space axis

Atmel 840B digitizer presents a stylus interface which reports twice
the X coordinate and then twice the Y coordinate. In its current
implementation, hid-input assign the first X to X, then the second to Y,
then the first Y to Z, then the second one to RX.

This is wrong, and X should always be mapped to X, no matter what.
A solution consists in forcing X, Y, Z, RX, RY, RZ to be mapped to their
correct user space counter part.

Reported-by: Éric Brunet <Eric.Brunet@lps.ens.fr>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c