summaryrefslogtreecommitdiff
path: root/drivers/input
diff options
context:
space:
mode:
authorAndi Shyti <andi.shyti@samsung.com>2018-01-29 22:43:52 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-01-30 21:08:12 +0300
commita22e88fd7da44616388d366030e9bd170ab97788 (patch)
tree17454465abd0e4c02c30a0fab4e47baec28683db /drivers/input
parent72b0c0cf9720cd139829610cfcd9ac294451a9f8 (diff)
downloadlinux-a22e88fd7da44616388d366030e9bd170ab97788.tar.xz
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>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/mms114.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c
index c54f4afe1103..7b1307c1374b 100644
--- a/drivers/input/touchscreen/mms114.c
+++ b/drivers/input/touchscreen/mms114.c
@@ -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) {