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)
commit45e2852b8b27b92fb0f1ad9c94a8edd65c5a61c8
tree912ab78144aaea4ff6f74dcd5f7dbd009d6922d8
parent55bf851b4ad76778ce4e591dbb79006d7107cf3d
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