提交 180deb50 编写于 作者: J Jiri Slaby 提交者: Dmitry Torokhov

Input: mainstone-wm97xx - fix condition in pen_up

The loop body was never executed, because the condition is
always false. Convert to for with more obvious condition.
Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 9a03fbe8
...@@ -111,13 +111,12 @@ static void wm97xx_acc_pen_up(struct wm97xx *wm) ...@@ -111,13 +111,12 @@ static void wm97xx_acc_pen_up(struct wm97xx *wm)
#else #else
static void wm97xx_acc_pen_up(struct wm97xx *wm) static void wm97xx_acc_pen_up(struct wm97xx *wm)
{ {
int count = 16; unsigned int count;
schedule_timeout_uninterruptible(1); schedule_timeout_uninterruptible(1);
while (count < 16) { for (count = 0; count < 16; count++)
MODR; MODR;
count--;
}
} }
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部