tp: ct36x touchscreen compatible sdk and 977
author郭毅 <gy@rock-chips.com>
Mon, 24 Mar 2014 08:33:31 +0000 (16:33 +0800)
committer郭毅 <gy@rock-chips.com>
Mon, 24 Mar 2014 08:34:16 +0000 (16:34 +0800)
drivers/input/touchscreen/ct36x/ct363.c

index 0a29b737b93917cddae9fca09ff382f600676017..b2e293d814dcb8035b98c0cc721463a6c6b3fd7d 100755 (executable)
@@ -204,7 +204,9 @@ static void ct363_report(struct ct36x_data *ts)
                    if( (ct363->x > ts->x_max) || (ct363->y > ts->y_max) || (ct363->x < 0) || (ct363->y < 0) ){
                           continue ;
                     }
-            ct363->y = ts->y_max - ct363->y;       
+                   if(flag_ct36x_model==363){
+                       ct363->y = ts->y_max - ct363->y;      //add for p977 
+                  }       
                        input_mt_slot(ts->input, ct363->pts[i].id - 1);
                        input_mt_report_slot_state(ts->input, MT_TOOL_FINGER, true);
                        input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR, 1);