提交 c4febb94 编写于 作者: J Juha Yrjola 提交者: Dmitry Torokhov

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: NJuha Yrjola <juha.yrjola@nokia.com>
Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 0b7018aa
......@@ -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);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册