From: Colin Cross Date: Mon, 22 Nov 2010 21:48:33 +0000 (-0800) Subject: input: touchscreen: qtouch: Report first finger as finger 0 X-Git-Tag: firefly_0821_release~9834^2~322 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=279b4c7e4bec65bffc8f50bbf1fa7f6d47cddf1a;p=firefly-linux-kernel-4.4.55.git input: touchscreen: qtouch: Report first finger as finger 0 Change-Id: Ie2045b7faf5d80ca5cd02b6e745b6974275baccd Signed-off-by: Colin Cross --- diff --git a/drivers/input/touchscreen/qtouch_obp_ts.c b/drivers/input/touchscreen/qtouch_obp_ts.c index 82279bc47f65..08d0a19a7764 100644 --- a/drivers/input/touchscreen/qtouch_obp_ts.c +++ b/drivers/input/touchscreen/qtouch_obp_ts.c @@ -833,7 +833,6 @@ static int do_touch_multi_msg(struct qtouch_ts_data *ts, struct qtm_object *obj, uint32_t finger; int down; - finger = msg->report_id - obj->report_id_min; if (finger >= ts->pdata->multi_touch_cfg.num_touch) return 0; @@ -888,7 +887,7 @@ static int do_touch_multi_msg(struct qtouch_ts_data *ts, struct qtm_object *obj, input_report_abs(ts->input_dev, ABS_MT_POSITION_Y, ts->finger_data[i].y_data); input_report_abs(ts->input_dev, ABS_MT_TRACKING_ID, - i+1); + i); input_mt_sync(ts->input_dev); } input_sync(ts->input_dev);