linux/drivers/staging/iio
Katie Dunne ba272e3bbe Staging: iio: meter: ade7759: update locking method for write frequency
iio_dev->mlock is to be used only by the IIO core for protecting
device mode changes between INDIO_DIRECT and INDIO_BUFFER.

This patch replaces the use of mlock with the already established
buf_lock mutex.

Introducing an 'unlocked' spi_write_reg_16 function to be used by
ade7759_write_frequency avoids nested locks and maintains atomicity
between bus and device frequency changes.

Based on the solution found in ade7754 patch here:
https://marc.info/?l=linux-iio&m=149086659008991&w=2

Signed-off-by: Katie Dunne <kdunne@mail.ccsf.edu>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2017-09-24 15:52:03 +01:00
..
accel staging:iio:accel: drop assignment of iio_info.driver_module 2017-08-22 22:14:53 +01:00
adc staging:iio:adc: drop assign iio_info.driver_module 2017-08-22 22:14:53 +01:00
addac staging:iio:adc: drop assign iio_info.driver_module 2017-08-22 22:14:53 +01:00
cdc staging:iio:cdc: drop assign iio_info.driver_module 2017-08-22 22:14:54 +01:00
Documentation staging:iio:docs: drop setting of THIS_MODULE from staging docs. 2017-09-03 18:10:28 +01:00
frequency staging:iio:frequency: drop assign iio_info.driver_module 2017-08-22 22:14:55 +01:00
gyro staging:iio:gyro:adis16060 drop assign iio_info.driver_module 2017-08-22 22:14:55 +01:00
impedance-analyzer staging:iio:ad5933: drop assign iio_info.driver_module 2017-08-22 22:14:56 +01:00
light staging: iio: tsl2x7x: clean up limit checks 2017-09-24 12:34:56 +01:00
meter Staging: iio: meter: ade7759: update locking method for write frequency 2017-09-24 15:52:03 +01:00
resolver iio:resolver: drop assignment of iio_info.driver_module 2017-08-22 22:14:57 +01:00
trigger staging:trigger: drop assignment of iio_trigger_ops.owner 2017-08-22 22:14:58 +01:00
Kconfig iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
Makefile iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
TODO staging:iio:TODO drop outdated entries in this todo. 2016-10-23 19:33:40 +01:00