From: wuhao Date: Thu, 29 Nov 2012 07:51:18 +0000 (+0800) Subject: rk292x :sitronix use macros CONFIG_RK_CONFIG to isolate pdata->direction_otation X-Git-Tag: firefly_0821_release~8161 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e422c56f965031a03a2a0d69609c56a4cfa4a81c;p=firefly-linux-kernel-4.4.55.git rk292x :sitronix use macros CONFIG_RK_CONFIG to isolate pdata->direction_otation --- diff --git a/drivers/input/touchscreen/sitronix_ts_a720.c b/drivers/input/touchscreen/sitronix_ts_a720.c index d0ba590c6d19..37b4ffea3452 100755 --- a/drivers/input/touchscreen/sitronix_ts_a720.c +++ b/drivers/input/touchscreen/sitronix_ts_a720.c @@ -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){