From: Martin Kepplinger Date: Fri, 5 Oct 2018 18:44:45 +0000 (-0700) Subject: Input: st1232 - set INPUT_PROP_DIRECT property X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=20bbb312079494a406c10c90932e3c80837c9d94;p=openwrt%2Fstaging%2Fblogic.git Input: st1232 - set INPUT_PROP_DIRECT property This is how userspace checks for touchscreen devices most reliably. Signed-off-by: Martin Kepplinger Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/st1232.c b/drivers/input/touchscreen/st1232.c index d5dfa4053bbf..b71673911aac 100644 --- a/drivers/input/touchscreen/st1232.c +++ b/drivers/input/touchscreen/st1232.c @@ -195,6 +195,7 @@ static int st1232_ts_probe(struct i2c_client *client, input_dev->id.bustype = BUS_I2C; input_dev->dev.parent = &client->dev; + __set_bit(INPUT_PROP_DIRECT, input_dev->propbit); __set_bit(EV_SYN, input_dev->evbit); __set_bit(EV_KEY, input_dev->evbit); __set_bit(EV_ABS, input_dev->evbit);