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:
Andi Shyti 2018-01-29 11:43:52 -08:00 committed by Dmitry Torokhov
parent 72b0c0cf97
commit a22e88fd7d

View File

@ -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) {