Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+1 -1
+1 -1
drivers/input/touchscreen/ilitek_ts_i2c.c
··· 122 122 return error; 123 123 } 124 124 if (delay > 0) 125 - mdelay(delay); 125 + fsleep(delay * 1000); 126 126 127 127 if (read_len > 0) { 128 128 error = i2c_transfer(client->adapter, msgs + 1, 1);