Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit feb6ad03 authored by Amy Maloche's avatar Amy Maloche Committed by Shantanu Jain
Browse files

ft5x06: Set input property bit to indicate a direct input device



Property bit is checked in userspace and must be set in
driver in order to be recognized correctly since it defaults
to mouse pointer.

Change-Id: Ibdc78547e6376e6db54db75b1423718d13afaaa7
Signed-off-by: default avatarAmy Maloche <amaloche@codeaurora.org>
parent 2b6ea311
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -444,6 +444,7 @@ static int ft5x06_ts_probe(struct i2c_client *client,
	__set_bit(EV_KEY, input_dev->evbit);
	__set_bit(EV_ABS, input_dev->evbit);
	__set_bit(BTN_TOUCH, input_dev->keybit);
	__set_bit(INPUT_PROP_DIRECT, input_dev->propbit);

	input_set_abs_params(input_dev, ABS_MT_POSITION_X, 0,
			     pdata->x_max, 0, 0);