From cc69df9d8efafd08bb5ac80394902c98ebc88942 Mon Sep 17 00:00:00 2001 From: Gongwei Chen Date: Fri, 10 May 2019 18:57:22 +0800 Subject: [PATCH] common: support tp CST226 for yeke [3/3] PD#SWPL-8013 Problem: support touchpanel CST226 for yeke. Solution: support touchpanel CST226 for yeke. Verify: verify by u202. Change-Id: I4a994ed97f56a4486f3ab39c3e2cd0e5fbed667e Signed-off-by: GongWei Chen --- drivers/amlogic/input/touchscreen/hyn_cst2xx/hyncst226.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/input/touchscreen/hyn_cst2xx/hyncst226.c b/drivers/amlogic/input/touchscreen/hyn_cst2xx/hyncst226.c index 7428919..299c969 100644 --- a/drivers/amlogic/input/touchscreen/hyn_cst2xx/hyncst226.c +++ b/drivers/amlogic/input/touchscreen/hyn_cst2xx/hyncst226.c @@ -534,7 +534,7 @@ static int cst2xx_read_checksum(struct i2c_client *client) if ((buf[0] == 0x01) || (buf[0] == 0x02)) break; - usleep_range(2000, 2010) + usleep_range(2000, 2010); } if ((buf[0] == 0x01) || (buf[0] == 0x02)) { @@ -931,6 +931,8 @@ XY_WORK_END: i2c_lock_flag = 0; i2c_lock_schedule:; #endif + + return; } #ifdef HYN_MONITOR -- 2.7.4