Input: mms114 - replace mdelay with msleep
authorAndi Shyti <andi.shyti@samsung.com>
Mon, 29 Jan 2018 19:43:52 +0000 (11:43 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 30 Jan 2018 18:08:12 +0000 (10:08 -0800)
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>
drivers/input/touchscreen/mms114.c

index c54f4afe110370979a5eff64778687566117492b..7b1307c1374b35b43291efbb9c7f70cee1497694 100644 (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) {