Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 180deb50 authored by Jiri Slaby's avatar Jiri Slaby Committed by Dmitry Torokhov
Browse files

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: default avatarJiri Slaby <jirislaby@gmail.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 9a03fbe8
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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