ili2102 driver : update for td8801_v2
authorzhanghao <zhanghao@rock-chips.com>
Wed, 8 Feb 2012 06:38:29 +0000 (14:38 +0800)
committerzhanghao <zhanghao@rock-chips.com>
Wed, 8 Feb 2012 06:39:04 +0000 (14:39 +0800)
drivers/input/touchscreen/ili2102_ts.c

index e043d1b5f34899646cfcc1fc7e9ab5be1aac30b2..fd64405c3e622a20541e79068748664f518e2b48 100755 (executable)
@@ -399,6 +399,11 @@ static void ili2102_ts_work_func(struct work_struct *work)
                                        x = g_x[i];
                                        y = g_y[i];
                                }
+                               #ifdef CONFIG_MACH_RK29_TD8801_V2
+                               if( y >=80 ) y-=80;
+                               if( x >= 50 ) x-=50;
+                               #endif
+
                                g_x[i] = x;
                                g_y[i] = y;