Input: wacom - fix pressure in Cintiq 21UX2

Currently the pressure range in Cintiq 21UX2 is limited to half of the
supported. This patch fixes the problem.

Signed-off-by: Aristeu Rozanski <aris@redhat.com>
Acked-by: Ping Cheng <pingc@wacom.com>
CC: stable@kernel.org
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by Aristeu Rozanski and committed by Dmitry Torokhov ca047fed f6cd3783

+3 -1
+3 -1
drivers/input/tablet/wacom_wac.c
··· 442 /* general pen packet */ 443 if ((data[1] & 0xb8) == 0xa0) { 444 t = (data[6] << 2) | ((data[7] >> 6) & 3); 445 - if (features->type >= INTUOS4S && features->type <= INTUOS4L) 446 t = (t << 1) | (data[1] & 1); 447 input_report_abs(input, ABS_PRESSURE, t); 448 input_report_abs(input, ABS_TILT_X, 449 ((data[7] << 1) & 0x7e) | (data[8] >> 7));
··· 442 /* general pen packet */ 443 if ((data[1] & 0xb8) == 0xa0) { 444 t = (data[6] << 2) | ((data[7] >> 6) & 3); 445 + if ((features->type >= INTUOS4S && features->type <= INTUOS4L) || 446 + features->type == WACOM_21UX2) { 447 t = (t << 1) | (data[1] & 1); 448 + } 449 input_report_abs(input, ABS_PRESSURE, t); 450 input_report_abs(input, ABS_TILT_X, 451 ((data[7] << 1) & 0x7e) | (data[8] >> 7));