From: 郭毅 Date: Mon, 24 Mar 2014 08:33:31 +0000 (+0800) Subject: tp: ct36x touchscreen compatible sdk and 977 X-Git-Tag: firefly_0821_release~5872 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aa71396e5fea620e583e3ed9b59bb9978e73f347;p=firefly-linux-kernel-4.4.55.git tp: ct36x touchscreen compatible sdk and 977 --- diff --git a/drivers/input/touchscreen/ct36x/ct363.c b/drivers/input/touchscreen/ct36x/ct363.c index 0a29b737b939..b2e293d814dc 100755 --- a/drivers/input/touchscreen/ct36x/ct363.c +++ b/drivers/input/touchscreen/ct36x/ct363.c @@ -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);