rk3168_86v: modify the resolutation of tp
authorhjc <hjc@rock-chips.com>
Thu, 28 Feb 2013 09:04:08 +0000 (17:04 +0800)
committerhjc <hjc@rock-chips.com>
Thu, 28 Feb 2013 09:04:08 +0000 (17:04 +0800)
drivers/input/touchscreen/86v_gt811_ts.c

index 92e94a280b7b5fd2a278b81cd3cf1b56495a154a..cd72af55546df435aaaa1e1b9521b092618d629e 100755 (executable)
@@ -839,7 +839,11 @@ err_gpio_request_failed:
        input_mt_init_slots(ts->input_dev, ts->max_touch_num);\r
        input_set_abs_params(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);\r
        input_set_abs_params(ts->input_dev, ABS_MT_POSITION_X, 0, ts->abs_x_max, 0, 0);\r
+#ifdef CONFIG_MACH_RK3168_86V_OLD\r
        input_set_abs_params(ts->input_dev, ABS_MT_POSITION_Y, 0, 415, 0, 0);   \r
+#else\r
+       input_set_abs_params(ts->input_dev, ABS_MT_POSITION_Y, 0, ts->abs_y_max, 0, 0);\r
+#endif\r
        //printk("\n\nhjc:%s,x_max=%d,y_max=%d\n",__func__,ts->abs_x_max,ts->abs_y_max);\r
        \r
        \r