]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
Input: st1232 - set INPUT_PROP_DIRECT property
authorMartin Kepplinger <martink@posteo.de>
Fri, 5 Oct 2018 18:44:45 +0000 (11:44 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Thu, 28 Nov 2019 04:59:27 +0000 (23:59 -0500)
BugLink: https://bugs.launchpad.net/bugs/1854216
[ Upstream commit 20bbb312079494a406c10c90932e3c80837c9d94 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/input/touchscreen/st1232.c

index d5dfa4053bbf2359c94bef8748cab1cda367aaf4..b71673911aac303bbc61e34c1375582c6e7dbddf 100644 (file)
@@ -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);