Input: wm97xx - adapt parameters to tosa touchscreen.
authorDmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Fri, 24 Oct 2014 22:34:39 +0000 (15:34 -0700)
committerJiri Slaby <jslaby@suse.cz>
Wed, 19 Nov 2014 22:15:29 +0000 (23:15 +0100)
commit 859abd1d59e2db07d2e4db27074fc33568353d11 upstream.

Sharp SL-6000 (tosa) touchscreen needs wider limits to properly map all
points on the screen. Expand ranges in abs_x and abs_y arrays according
to the touchscreen area.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/input/touchscreen/wm97xx-core.c

index 7e45c9f6e6b7426d69c90f82f3c8eb2c54a7a15f..b08c16bd816e69d657fbd06a0f2335cce185eadc 100644 (file)
  * Documentation/input/input-programming.txt for more details.
  */
 
-static int abs_x[3] = {350, 3900, 5};
+static int abs_x[3] = {150, 4000, 5};
 module_param_array(abs_x, int, NULL, 0);
 MODULE_PARM_DESC(abs_x, "Touchscreen absolute X min, max, fuzz");
 
-static int abs_y[3] = {320, 3750, 40};
+static int abs_y[3] = {200, 4000, 40};
 module_param_array(abs_y, int, NULL, 0);
 MODULE_PARM_DESC(abs_y, "Touchscreen absolute Y min, max, fuzz");