android_kernel_oneplus_msm8998/drivers/iio
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
..
accel iio: accel: kxsd9: Fix scaling bug 2016-09-24 10:07:38 +02:00
adc iio: adc: ti_am335x_adc: fix fifo overrun recovery 2017-03-30 09:35:17 +02:00
amplifiers spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
buffer iio: Move generic buffer implementations to sub-directory 2015-08-16 10:51:21 +01:00
chemical iio: chemical: vz89x hardware i2c workaround 2015-09-30 18:20:53 +01:00
common iio: hid-sensor-trigger: Change get poll value function order to avoid sensor properties losing after resume from S3 2017-03-30 09:35:17 +02:00
dac iio: dac: ad7303: fix channel description 2017-05-25 14:30:10 +02:00
frequency spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
gyro iio: bmg160: reset chip when probing 2017-04-12 12:38:33 +02:00
humidity iio: hudmidity: hdc100x: fix incorrect shifting and scaling 2016-07-27 09:47:36 -07:00
imu iio: adis_buffer: Fix out-of-bounds memory access 2016-02-25 12:01:17 -08:00
light iio: light: ltr501 Fix interchanged als/ps register field 2017-06-14 13:16:23 +02:00
magnetometer iio: ak8975: fix maybe-uninitialized warning 2016-05-11 11:21:23 +02:00
orientation iio: orientation: hid-sensor-rotation: Add PM function (fix non working driver) 2016-11-18 10:48:35 +01:00
potentiometer iio: mcp4531: Driver for Microchip digital potentiometers 2015-09-30 18:20:53 +01:00
pressure iio: pressure: mpl3115: do not rely on structure field ordering 2017-03-12 06:37:28 +01:00
proximity iio: proximity: as3935: recalibrate RCO after resume 2017-06-26 07:13:09 +02:00
temperature Add tsys02d meas-spec driver support 2015-10-11 10:21:19 +01:00
trigger iio: trigger: Add a blank line after declarations 2014-12-26 12:15:36 +00:00
iio_core.h iio: Move buffer registration to the core 2014-12-12 12:28:31 +00:00
iio_core_trigger.h
industrialio-buffer.c iio: ensure ret is initialized to zero before entering do loop 2016-09-24 10:07:38 +02:00
industrialio-core.c include/linux/kernel.h: change abs() macro so it uses consistent return type 2016-09-30 10:18:33 +02:00
industrialio-event.c iio: event: Remove negative error code from iio_event_poll 2015-08-12 19:26:39 +01:00
industrialio-trigger.c iio: Fix error handling in iio_trigger_attach_poll_func 2016-07-27 09:47:36 -07:00
industrialio-triggered-event.c iio: Support triggered events 2015-08-27 20:47:09 +01:00
inkern.c iio: inkern: fix a NULL dereference on error 2016-02-25 12:01:17 -08:00
Kconfig iio: mcp4531: Driver for Microchip digital potentiometers 2015-09-30 18:20:53 +01:00
Makefile iio: mcp4531: Driver for Microchip digital potentiometers 2015-09-30 18:20:53 +01:00