summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-uclogic-params.c
diff options
context:
space:
mode:
authorNikolai Kondrashov <spbnick@gmail.com>2022-05-08 19:01:43 +0300
committerJiri Kosina <jkosina@suse.cz>2022-05-11 15:19:27 +0300
commitfbc08b4e8ea5582029dc3c05c954d4d157e4d3f8 (patch)
tree249de3edbf8355f0b35db22bc408787d0ec7f9e5 /drivers/hid/hid-uclogic-params.c
parentcaf7e93479c73374a9fcad29f90477280444584e (diff)
downloadlinux-fbc08b4e8ea5582029dc3c05c954d4d157e4d3f8.tar.xz
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>
Diffstat (limited to 'drivers/hid/hid-uclogic-params.c')
-rw-r--r--drivers/hid/hid-uclogic-params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-uclogic-params.c b/drivers/hid/hid-uclogic-params.c
index 459f15288ccc..163efd026881 100644
--- a/drivers/hid/hid-uclogic-params.c
+++ b/drivers/hid/hid-uclogic-params.c
@@ -889,7 +889,7 @@ static int uclogic_params_huion_init(struct uclogic_params *params,
UCLOGIC_RDESC_V2_FRAME_TOUCH_DEV_ID_BYTE;
p.frame_list[1].touch_byte = 5;
p.frame_list[1].touch_max = 12;
- p.frame_list[1].touch_flip_at = 6;
+ p.frame_list[1].touch_flip_at = 7;
/* Create v2 frame dial parameters */
rc = uclogic_params_frame_init_with_desc(