From: Colin Cross Date: Tue, 23 Nov 2010 01:44:34 +0000 (-0800) Subject: input: touchscreen: qtouch: Update finger id on resume as well X-Git-Tag: firefly_0821_release~9834^2~318 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=20393f2c7251d4a9c553bcf9a1cfd472e1e98c85;p=firefly-linux-kernel-4.4.55.git input: touchscreen: qtouch: Update finger id on resume as well Change-Id: If195ff054e6042c539a3906ae4b46940748b58db Signed-off-by: Colin Cross --- diff --git a/drivers/input/touchscreen/qtouch_obp_ts.c b/drivers/input/touchscreen/qtouch_obp_ts.c index 08d0a19a7764..22d34db36935 100644 --- a/drivers/input/touchscreen/qtouch_obp_ts.c +++ b/drivers/input/touchscreen/qtouch_obp_ts.c @@ -1923,7 +1923,7 @@ static int qtouch_ts_resume(struct i2c_client *client) if (ts->finger_data[i].down == 0) continue; input_report_abs(ts->input_dev, ABS_MT_TOUCH_MAJOR, 0); - input_report_abs(ts->input_dev, ABS_MT_TRACKING_ID, i+1); + input_report_abs(ts->input_dev, ABS_MT_TRACKING_ID, i); input_mt_sync(ts->input_dev); memset(&ts->finger_data[i], 0, sizeof(struct coordinate_map)); }