ASoC: fsl_sai: Use usleep_range() instead of msleep()
authorXiubo Li <lixiubo@cmss.chinamobile.com>
Fri, 15 Jan 2016 11:35:24 +0000 (19:35 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 22 Jan 2016 16:47:52 +0000 (16:47 +0000)
commit512feb4e19a262ea0dfd7209506a998897feaadc
tree8586f494132b8d384e332acf759284630f5ffaa6
parentc1df29648f1e3ffb8bac38e27a22b50f5c019adf
ASoC: fsl_sai: Use usleep_range() instead of msleep()

Since msleep() will sleep longer than intended time for values less
than 20ms, this patch allows the use of usleep_range for just 1ms.
usleep_range is a finer precision implementation of msleep and is
designed to be a drop-in replacement for udelay where a precise
sleep/busy-wait is unnecessary.

More details see Documentation/timers/timers-howto.txt.

Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_sai.c