summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJuha Yrjola <juha.yrjola@nokia.com>2006-04-11 23:42:25 -0400
committerDmitry Torokhov <dtor_core@ameritech.net>2006-04-11 23:42:25 -0400
commitc4febb94dae915da4423b81c487eabed9cef5cba (patch)
tree243d1b9d27308cd50fac24f8ac0ff785097b5495 /drivers
parent0b7018aae7e1798f55f736b9a77c201708aa0e33 (diff)
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')
-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);
}
}