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/touchscreen/ads7846.c | |
parent | 0b7018aae7e1798f55f736b9a77c201708aa0e33 (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/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) | |||
449 | 449 | ||
450 | while (ts->pendown || ts->pending) { | 450 | while (ts->pendown || ts->pending) { |
451 | spin_unlock_irqrestore(&ts->lock, flags); | 451 | spin_unlock_irqrestore(&ts->lock, flags); |
452 | udelay(10); | 452 | msleep(1); |
453 | spin_lock_irqsave(&ts->lock, flags); | 453 | spin_lock_irqsave(&ts->lock, flags); |
454 | } | 454 | } |
455 | } | 455 | } |