projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9a03fbe
)
Input: mainstone-wm97xx - fix condition in pen_up
author
Jiri Slaby
<
[email protected]
>
Wed, 15 Apr 2009 16:03:07 +0000
(09:03 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Wed, 15 Apr 2009 16:04:10 +0000
(09:04 -0700)
The loop body was never executed, because the condition is
always false. Convert to for with more obvious condition.
Signed-off-by: Jiri Slaby <
[email protected]
>
Acked-by: Mark Brown <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/touchscreen/mainstone-wm97xx.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/mainstone-wm97xx.c
b/drivers/input/touchscreen/mainstone-wm97xx.c
index dfa6a84ab50af632503f495e3792f57330abac81..4cc047a5116ec0ce61af2a34aefd645fd91404d3 100644
(file)
--- a/
drivers/input/touchscreen/mainstone-wm97xx.c
+++ b/
drivers/input/touchscreen/mainstone-wm97xx.c
@@
-111,13
+111,12
@@
static void wm97xx_acc_pen_up(struct wm97xx *wm)
#else
static void wm97xx_acc_pen_up(struct wm97xx *wm)
{
- int count = 16;
+ unsigned int count;
+
schedule_timeout_uninterruptible(1);
- while (count < 16) {
+ for (count = 0; count < 16; count++)
MODR;
- count--;
- }
}
#endif