android_kernel_oneplus_msm8998/drivers/iio/proximity
Matt Ranostay 7e2ad8b207 iio: proximity: as3935: recalibrate RCO after resume
commit 6272c0de13abf1480f701d38288f28a11b4301c4 upstream.

According to the datasheet the RCO must be recalibrated
on every power-on-reset. Also remove mutex locking in the
calibration function since callers other than the probe
function (which doesn't need it) will have a lock.

Fixes: 24ddb0e4bb ("iio: Add AS3935 lightning sensor support")
Cc: George McCollister <george.mccollister@gmail.com>
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-06-26 07:13:09 +02:00
..
as3935.c iio: proximity: as3935: recalibrate RCO after resume 2017-06-26 07:13:09 +02:00
Kconfig iio: proximity: add support for PulsedLight LIDAR 2015-08-31 16:48:16 +01:00
Makefile iio: proximity: add support for PulsedLight LIDAR 2015-08-31 16:48:16 +01:00
pulsedlight-lidar-lite-v2.c iio: lidar: return -EINVAL on invalid signal 2015-11-21 15:56:53 +00:00
sx9500.c iio: remove gpio interrupt probing from drivers that use a single interrupt 2015-10-03 12:05:51 +01:00