mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:24:31 +01:00
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 <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
a2c5ea4235
commit
eeb2ea4b59
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue