iio: proximity: as3935: recalibrate RCO after resume
authorMatt Ranostay <matt.ranostay@konsulko.com>
Fri, 14 Apr 2017 23:38:19 +0000 (16:38 -0700)
committerJonathan Cameron <jic23@kernel.org>
Wed, 26 Apr 2017 06:06:31 +0000 (07:06 +0100)
commit6272c0de13abf1480f701d38288f28a11b4301c4
tree277d6a6717ed9c98674b4ef2e1a8f69b1a10e865
parente44adf05b85e5a9d1d224f5ecde1c1c5e5371e36
iio: proximity: as3935: recalibrate RCO after resume

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: 24ddb0e4bba4 ("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>
drivers/iio/proximity/as3935.c