diff options
author | Juha Yrjola <juha.yrjola@nokia.com> | 2006-04-11 23:42:25 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-04-11 23:42:25 -0400 |
commit | c4febb94dae915da4423b81c487eabed9cef5cba (patch) | |
tree | 243d1b9d27308cd50fac24f8ac0ff785097b5495 /drivers/input | |
parent | 0b7018aae7e1798f55f736b9a77c201708aa0e33 (diff) | |
download | kernel-common-c4febb94dae915da4423b81c487eabed9cef5cba.tar.gz kernel-common-c4febb94dae915da4423b81c487eabed9cef5cba.tar.bz2 kernel-common-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')
-rw-r--r-- | drivers/input/touchscreen/ads7846.c | 2 |
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); } } |