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;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
mdelay(MMS114_POWERON_DELAY);
|
msleep(MMS114_POWERON_DELAY);
|
||||||
|
|
||||||
error = mms114_setup_regs(data);
|
error = mms114_setup_regs(data);
|
||||||
if (error < 0) {
|
if (error < 0) {
|
||||||
|
|
Loading…
Reference in New Issue