]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: isl29028: fix incorrect sleep time when taking initial proximity reading
authorBrian Masney <masneyb@onstation.org>
Thu, 9 Feb 2017 01:54:26 +0000 (20:54 -0500)
committerJonathan Cameron <jic23@kernel.org>
Sat, 11 Feb 2017 09:41:09 +0000 (09:41 +0000)
commit19042f6bb0735ee2f8685d6e721e726c5f4aba65
tree912ab78144aaea4ff6f74dcd5f7dbd009d6922d8
parent8bd9873438e9bf870c3adbbf84e627ad7a1c35aa
staging: iio: isl29028: fix incorrect sleep time when taking initial proximity reading

When proximity is enabled in isl29028_enable_proximity(), the function
msleep() is called with the sampling frequency, which is not correct.
This patch changes the code to sleep the specified amount of time listed
in the datasheet instead.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/isl29028.c