mirror of
https://github.com/torvalds/linux.git
synced 2024-12-11 21:52:04 +00:00
Input: mms114 - replace mdelay with msleep
200 milliseconds is a very long time to keep the CPU busy looping. Use msleep instead. Signed-off-by: Andi Shyti <andi.shyti@samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
72b0c0cf97
commit
a22e88fd7d
@ -349,7 +349,7 @@ static int mms114_start(struct mms114_data *data)
|
||||
return error;
|
||||
}
|
||||
|
||||
mdelay(MMS114_POWERON_DELAY);
|
||||
msleep(MMS114_POWERON_DELAY);
|
||||
|
||||
error = mms114_setup_regs(data);
|
||||
if (error < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user