]> git.baikalelectronics.ru Git - kernel.git/commit
HID: uclogic: Always shift touch reports to zero
authorNikolai Kondrashov <spbnick@gmail.com>
Sun, 8 May 2022 16:01:43 +0000 (18:01 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 11 May 2022 12:19:27 +0000 (14:19 +0200)
commit75b73c42b768968b6f91a0caa6b043a6aee9f830
tree249de3edbf8355f0b35db22bc408787d0ec7f9e5
parent8a1c6132fe2545b0d218824225d9b2a28e876aec
HID: uclogic: Always shift touch reports to zero

Always decrement touch report values to have the range start with zero,
regardless if flipped or not. This fixes the future non-flipped touch
strip reports.

Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-uclogic-core.c
drivers/hid/hid-uclogic-params.c