Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: tsc40 - remove wrong announcement of pressure support

The tsc40 driver announces it supports the pressure event, but will never
send one. The announcement will cause tslib to wait for such events and
sending all touch events with a pressure of 0. Removing the announcement
will make tslib fall back to emulating the pressure on touch events so
everything works as expected.

Signed-off-by: Rolf Eike Beer <eike-kernel@sf-tec.de>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Rolf Eike Beer and committed by
Dmitry Torokhov
32ed1911 e07577e1

-1
-1
drivers/input/touchscreen/tsc40.c
··· 107 107 __set_bit(BTN_TOUCH, input_dev->keybit); 108 108 input_set_abs_params(ptsc->dev, ABS_X, 0, 0x3ff, 0, 0); 109 109 input_set_abs_params(ptsc->dev, ABS_Y, 0, 0x3ff, 0, 0); 110 - input_set_abs_params(ptsc->dev, ABS_PRESSURE, 0, 0, 0, 0); 111 110 112 111 serio_set_drvdata(serio, ptsc); 113 112