diff options
author | Juha Yrjola <juha.yrjola@nokia.com> | 2006-04-12 05:42:25 +0200 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2006-04-12 05:42:25 +0200 |
commit | c4febb94dae915da4423b81c487eabed9cef5cba (patch) | |
tree | 243d1b9d27308cd50fac24f8ac0ff785097b5495 /drivers/input/touchscreen/ads7846.c | |
parent | Input: ads7846 - debouncing and rudimentary sample filtering (diff) | |
download | linux-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.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); } } |