From: Dmitry Torokhov Date: Fri, 19 Dec 2025 05:41:04 +0000 (-0800) Subject: Input: ilitek_ts_i2c - switch mdelay() to fsleep() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeb2ea4b59df5fdcb697904fe6f49d5851543808;p=thirdparty%2Fkernel%2Flinux.git Input: ilitek_ts_i2c - switch mdelay() to fsleep() The mdelay() is called in sleeping context and it should be OK to delay slightly longer than requested, so switch the code to use fsleep() to avoid spinning. Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/ilitek_ts_i2c.c b/drivers/input/touchscreen/ilitek_ts_i2c.c index 10e5530d6a5d..0706443792ba 100644 --- a/drivers/input/touchscreen/ilitek_ts_i2c.c +++ b/drivers/input/touchscreen/ilitek_ts_i2c.c @@ -122,7 +122,7 @@ static int ilitek_i2c_write_and_read(struct ilitek_ts_data *ts, return error; } if (delay > 0) - mdelay(delay); + fsleep(delay * 1000); if (read_len > 0) { error = i2c_transfer(client->adapter, msgs + 1, 1);