summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/st1232.c
diff options
context:
space:
mode:
authorMartin Kepplinger <martink@posteo.de>2018-10-05 20:44:45 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-10-05 20:52:05 +0200
commit20bbb312079494a406c10c90932e3c80837c9d94 (patch)
treee0bbe1be5fc2817961298e602b0cfb6335e2b86b /drivers/input/touchscreen/st1232.c
parentInput: xilinx_ps2 - convert to using %pOFn instead of device_node.name (diff)
downloadlinux-20bbb312079494a406c10c90932e3c80837c9d94.tar.xz
linux-20bbb312079494a406c10c90932e3c80837c9d94.zip
Input: st1232 - set INPUT_PROP_DIRECT property
This is how userspace checks for touchscreen devices most reliably. Signed-off-by: Martin Kepplinger <martink@posteo.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/st1232.c')
-rw-r--r--drivers/input/touchscreen/st1232.c1
1 files changed, 1 insertions, 0 deletions
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);