summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/tsc2005.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2015-06-01 19:35:16 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2015-06-25 23:45:46 +0200
commit7c494375b773497228502133879072a9e959c063 (patch)
tree9d540682dbbad8ceca9f04fde7242de09cf6a136 /drivers/input/touchscreen/tsc2005.c
parentInput: edt-ft5x06 - mark as direct input device (diff)
downloadlinux-7c494375b773497228502133879072a9e959c063.tar.xz
linux-7c494375b773497228502133879072a9e959c063.zip
Input: improve parsing OF parameters for touchscreens
When applying touchscreen parameters specified in device tree let's make sure we keep whatever setup was done by the driver and not reset the missing values to zero. Reported-by: Pavel Machek <pavel@ucw.cz> Tested-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/tsc2005.c')
-rw-r--r--drivers/input/touchscreen/tsc2005.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/tsc2005.c b/drivers/input/touchscreen/tsc2005.c
index 72657c579430..d8c025b0f88c 100644
--- a/drivers/input/touchscreen/tsc2005.c
+++ b/drivers/input/touchscreen/tsc2005.c
@@ -709,7 +709,7 @@ static int tsc2005_probe(struct spi_device *spi)
input_set_abs_params(input_dev, ABS_PRESSURE, 0, max_p, fudge_p, 0);
if (np)
- touchscreen_parse_of_params(input_dev);
+ touchscreen_parse_of_params(input_dev, false);
input_dev->open = tsc2005_open;
input_dev->close = tsc2005_close;