mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-01 23:04:54 +01:00
Input: ads7846 - avoid pen up/down when reading hwmon
Each time the HWMON devices are read (e.g. battery voltage) while the touchscreen is held pressed, extra pen-up and pen-down events are generated. This is fixed by avoiding the UP event when the touchscreen is stopped. Signed-off-by: David Jander <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
1 parent
e839ffab02
commit
f5a28a7d48
1 file changed
+1
-1
@@ -871,7 +871,7 @@ static irqreturn_t ads7846_irq(int irq, void *handle)
|
||||
msecs_to_jiffies(TS_POLL_PERIOD));
|
||||
}
|
||||
|
||||
if (ts->pendown) {
|
||||
if (ts->pendown && !ts->stopped) {
|
||||
struct input_dev *input = ts->input;
|
||||
|
||||
input_report_key(input, BTN_TOUCH, 0);
|
||||
|
||||
Reference in new issue
Block a user