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

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: Vipul Kumar Samar <vipulkumar.samar@st.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Vipul Kumar Samar and committed by
Dmitry Torokhov
7488b1b9 a455e298

+2
+2
drivers/input/touchscreen/stmpe-ts.c
··· 120 120 __stmpe_reset_fifo(ts->stmpe); 121 121 122 122 input_report_abs(ts->idev, ABS_PRESSURE, 0); 123 + input_report_key(ts->idev, BTN_TOUCH, 0); 123 124 input_sync(ts->idev); 124 125 } 125 126 ··· 154 153 input_report_abs(ts->idev, ABS_X, x); 155 154 input_report_abs(ts->idev, ABS_Y, y); 156 155 input_report_abs(ts->idev, ABS_PRESSURE, z); 156 + input_report_key(ts->idev, BTN_TOUCH, 1); 157 157 input_sync(ts->idev); 158 158 159 159 /* flush the FIFO after we have read out our values. */