From: zhanghao Date: Wed, 8 Feb 2012 06:38:29 +0000 (+0800) Subject: ili2102 driver : update for td8801_v2 X-Git-Tag: firefly_0821_release~9637 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6ddfd32578e5d43015c6a3bd31cdcaa05f86f251;p=firefly-linux-kernel-4.4.55.git ili2102 driver : update for td8801_v2 --- diff --git a/drivers/input/touchscreen/ili2102_ts.c b/drivers/input/touchscreen/ili2102_ts.c index e043d1b5f348..fd64405c3e62 100755 --- a/drivers/input/touchscreen/ili2102_ts.c +++ b/drivers/input/touchscreen/ili2102_ts.c @@ -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;