Javier Martinez Canillas 5981804b83 rtc: max77686: Use usleep_range() instead of msleep()
Documentation/timers/timers-howto.txt suggest to use usleep_range()
instead of msleep() for small msec (1ms - 20ms) since msleep() will
often sleep for 20ms for any value in that range.

This is fine in this case since 16ms is the _minimum_ delay required
by max77686 for an RTC update but by using usleep_range() instead of
msleep(), the driver can support other RTC IP blocks with a shorter
minimum delay (i.e: in the range of usecs instead of msecs).

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Tested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
2016-02-04 23:42:07 +01:00
..
2016-01-11 20:19:59 +01:00
2016-01-11 20:19:59 +01:00
2016-01-11 20:20:01 +01:00
2015-09-05 19:37:18 +02:00
2016-01-11 20:19:58 +01:00
2016-01-11 20:19:58 +01:00
2015-11-10 10:01:21 -08:00
2015-11-10 10:01:21 -08:00
2015-09-05 13:19:06 +02:00
2015-08-05 20:03:56 +08:00
2013-04-19 13:51:25 +02:00
2014-09-19 12:39:19 +02:00
2015-09-05 19:37:19 +02:00