diff options
author | Andi Shyti <andi.shyti@samsung.com> | 2018-01-29 20:43:52 +0100 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2018-01-30 19:08:12 +0100 |
commit | a22e88fd7da44616388d366030e9bd170ab97788 (patch) | |
tree | 17454465abd0e4c02c30a0fab4e47baec28683db /drivers/input | |
parent | Input: mms114 - add support for mms152 (diff) | |
download | linux-a22e88fd7da44616388d366030e9bd170ab97788.tar.xz linux-a22e88fd7da44616388d366030e9bd170ab97788.zip |
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.c | 2 |
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) { |