Commit 7488b1b9 authored by Vipul Kumar Samar's avatar Vipul Kumar Samar Committed by Dmitry Torokhov

Input: stmpe-ts - report BTN_TOUCH event

stmpe touchscreen supports BTN_TOUCH event but doesn't report it. Add
BTN_TOUCH reporting capability to the stmpe touchscreen driver.
Signed-off-by: default avatarVipul Kumar Samar <vipulkumar.samar@st.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Acked-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent a455e298
...@@ -120,6 +120,7 @@ static void stmpe_work(struct work_struct *work) ...@@ -120,6 +120,7 @@ static void stmpe_work(struct work_struct *work)
__stmpe_reset_fifo(ts->stmpe); __stmpe_reset_fifo(ts->stmpe);
input_report_abs(ts->idev, ABS_PRESSURE, 0); input_report_abs(ts->idev, ABS_PRESSURE, 0);
input_report_key(ts->idev, BTN_TOUCH, 0);
input_sync(ts->idev); input_sync(ts->idev);
} }
...@@ -153,6 +154,7 @@ static irqreturn_t stmpe_ts_handler(int irq, void *data) ...@@ -153,6 +154,7 @@ static irqreturn_t stmpe_ts_handler(int irq, void *data)
input_report_abs(ts->idev, ABS_X, x); input_report_abs(ts->idev, ABS_X, x);
input_report_abs(ts->idev, ABS_Y, y); input_report_abs(ts->idev, ABS_Y, y);
input_report_abs(ts->idev, ABS_PRESSURE, z); input_report_abs(ts->idev, ABS_PRESSURE, z);
input_report_key(ts->idev, BTN_TOUCH, 1);
input_sync(ts->idev); input_sync(ts->idev);
/* flush the FIFO after we have read out our values. */ /* flush the FIFO after we have read out our values. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment