Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: ads7846 - use msleep() instead of udelay() in suspend

Sometimes a polling loop had a hard time changing state without
pre-emption enabled. Use msleep instead, it's better anyway.

Signed-off-by: Juha Yrjola <juha.yrjola@nokia.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Juha Yrjola and committed by
Dmitry Torokhov
c4febb94 0b7018aa

+1 -1
+1 -1
drivers/input/touchscreen/ads7846.c
··· 449 449 450 450 while (ts->pendown || ts->pending) { 451 451 spin_unlock_irqrestore(&ts->lock, flags); 452 - udelay(10); 452 + msleep(1); 453 453 spin_lock_irqsave(&ts->lock, flags); 454 454 } 455 455 }