]> git.baikalelectronics.ru Git - kernel.git/commit
iio: health: max30100: use msleep() for long uncritical delays
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 16 Jan 2017 15:35:53 +0000 (16:35 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 22 Jan 2017 13:21:28 +0000 (13:21 +0000)
commitcc704e2571d381ee0cf4d28a9605337c86cd9942
tree6a4ccac850ef9323655287aa07a0b384961f22dd
parent05e1fed6875cb0cf79b262b8edeb87add19f1aaf
iio: health: max30100: use msleep() for long uncritical delays

ulseep_range() uses hrtimers and provides no advantage over msleep()
for larger delays. Fix up the 35ms delays here to use msleep() and
reduce the load on the hrtimer subsystem.

Fixes: commit 3cc6654a275a ("iio: light: add MAX30100 oximeter driver support")
Link: http://lkml.org/lkml/2017/1/11/377
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/health/max30100.c