rk292x :sitronix use macros CONFIG_RK_CONFIG to isolate pdata->direction_otation
authorwuhao <wuhao@wuhao@rock-chips.com>
Thu, 29 Nov 2012 07:51:18 +0000 (15:51 +0800)
committerwuhao <wuhao@wuhao@rock-chips.com>
Thu, 29 Nov 2012 07:53:19 +0000 (15:53 +0800)
drivers/input/touchscreen/sitronix_ts_a720.c

index d0ba590c6d19f39bff24ecdf525ddc1ad761d988..37b4ffea345299d56d43124eb386a2c9fc4b1702 100755 (executable)
@@ -826,7 +826,11 @@ static void sitronix_ts_work_func(struct work_struct *work)
                                input_mt_slot(ts->input_dev, i);
                                input_report_abs(ts->input_dev,  ABS_MT_TRACKING_ID, i);
                                input_report_abs(ts->input_dev,  ABS_MT_TOUCH_MAJOR, 200);
-                               
+
+                               #ifdef CONFIG_RK_CONFIG
+                                input_report_abs(ts->input_dev,  ABS_MT_POSITION_X, MTDStructure[i].Pixel_X);
+                               input_report_abs(ts->input_dev,  ABS_MT_POSITION_Y, MTDStructure[i].Pixel_Y);
+                               #else
                                if( pdata && (pdata->direction_otation) )
                                {
                                      int temp_x , temp_y ;
@@ -839,6 +843,7 @@ static void sitronix_ts_work_func(struct work_struct *work)
                                        input_report_abs(ts->input_dev,  ABS_MT_POSITION_X, MTDStructure[i].Pixel_X);
                                        input_report_abs(ts->input_dev,  ABS_MT_POSITION_Y, MTDStructure[i].Pixel_Y);
                                }
+                               #endif
                                input_report_abs(ts->input_dev,  ABS_MT_WIDTH_MAJOR, 100);
                                DbgMsg("lr[%d](%d, %d)+\n", i, MTDStructure[i].Pixel_X, MTDStructure[i].Pixel_Y);
                        }else if(MTDStructure[i].Current_Pressed_area == AREA_NONE){