projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72b0c0c
)
Input: mms114 - replace mdelay with msleep
author
Andi Shyti
<andi.shyti@samsung.com>
Mon, 29 Jan 2018 19:43:52 +0000
(11:43 -0800)
committer
Dmitry 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
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/mms114.c
b/drivers/input/touchscreen/mms114.c
index
c54f4af
..
7b1307c
100644
(file)
--- 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;
}
- m
delay
(MMS114_POWERON_DELAY);
+ m
sleep
(MMS114_POWERON_DELAY);
error = mms114_setup_regs(data);
if (error < 0) {