summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/ads7846.c
diff options
context:
space:
mode:
authorJuha Yrjola <juha.yrjola@nokia.com>2006-04-12 05:42:25 +0200
committerDmitry Torokhov <dtor_core@ameritech.net>2006-04-12 05:42:25 +0200
commitc4febb94dae915da4423b81c487eabed9cef5cba (patch)
tree243d1b9d27308cd50fac24f8ac0ff785097b5495 /drivers/input/touchscreen/ads7846.c
parentInput: ads7846 - debouncing and rudimentary sample filtering (diff)
downloadlinux-c4febb94dae915da4423b81c487eabed9cef5cba.tar.xz
linux-c4febb94dae915da4423b81c487eabed9cef5cba.zip
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>
Diffstat (limited to 'drivers/input/touchscreen/ads7846.c')
-rw-r--r--drivers/input/touchscreen/ads7846.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c
index 8670cd13bd5d..bdec112e89c4 100644
--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -449,7 +449,7 @@ ads7846_suspend(struct spi_device *spi, pm_message_t message)
while (ts->pendown || ts->pending) {
spin_unlock_irqrestore(&ts->lock, flags);
- udelay(10);
+ msleep(1);
spin_lock_irqsave(&ts->lock, flags);
}
}