aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/stmpe-ts.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/touchscreen/stmpe-ts.c')
-rw-r--r--drivers/input/touchscreen/stmpe-ts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscreen/stmpe-ts.c
index 84d884b4ec3e..59e81b00f244 100644
--- a/drivers/input/touchscreen/stmpe-ts.c
+++ b/drivers/input/touchscreen/stmpe-ts.c
@@ -120,6 +120,7 @@ static void stmpe_work(struct work_struct *work)
120 __stmpe_reset_fifo(ts->stmpe); 120 __stmpe_reset_fifo(ts->stmpe);
121 121
122 input_report_abs(ts->idev, ABS_PRESSURE, 0); 122 input_report_abs(ts->idev, ABS_PRESSURE, 0);
123 input_report_key(ts->idev, BTN_TOUCH, 0);
123 input_sync(ts->idev); 124 input_sync(ts->idev);
124} 125}
125 126
@@ -153,6 +154,7 @@ static irqreturn_t stmpe_ts_handler(int irq, void *data)
153 input_report_abs(ts->idev, ABS_X, x); 154 input_report_abs(ts->idev, ABS_X, x);
154 input_report_abs(ts->idev, ABS_Y, y); 155 input_report_abs(ts->idev, ABS_Y, y);
155 input_report_abs(ts->idev, ABS_PRESSURE, z); 156 input_report_abs(ts->idev, ABS_PRESSURE, z);
157 input_report_key(ts->idev, BTN_TOUCH, 1);
156 input_sync(ts->idev); 158 input_sync(ts->idev);
157 159
158 /* flush the FIFO after we have read out our values. */ 160 /* flush the FIFO after we have read out our values. */