mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
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 4d33615df5
("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>
This commit is contained in:
parent
ac2bec9d58
commit
18e2452a3c
1 changed files with 1 additions and 1 deletions
|
@ -378,7 +378,7 @@ static int max30100_get_temp(struct max30100_data *data, int *val)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
usleep_range(35000, 50000);
|
||||
msleep(35);
|
||||
|
||||
return max30100_read_temp(data, val);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue