]> git.baikalelectronics.ru Git - kernel.git/commit
HID: fix false positive out of range values
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 19 Jun 2013 15:49:05 +0000 (17:49 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 19 Jun 2013 21:53:52 +0000 (23:53 +0200)
commit54c2fece3554b429210e428c51222ec53ff14e89
tree1d186e77590a46a3242604fd74d488699b7f7afa
parent69d5f59179cdc46e5482aec973b3a79da0fe29bd
HID: fix false positive out of range values

Commit 295c6374c51716312945a817b0f268305d1df8c0 introduced in 3.3
"HID: ignore absolute values which don't fit between logical min and max"
prevents some Posiflex touch screen to work because they do not provide
logical min and max for their buttons.
Thus, logical min and max are at 0, discarding the buttons events, and
preventing the device to report appropriate X Y.

Adding a check on "min < max" solves the problem.

Reported-by: Jan Kandziora <jjj@gmx.de>
Tested-by: Jan Kandziora <jjj@gmx.de>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c