alistair23-linux/drivers/staging/iio
Aastha Gupta 2db82e320d staging: iio: adc: ad7192: use driver private lock to protect hardware state changes
The IIO subsystem is redefining iio_dev->mlock to be used by
the IIO core only for protecting device operating mode changes.
ie. Changes between INDIO_DIRECT_MODE, INDIO_BUFFER_* modes.

In this driver, mlock was being used to protect hardware state
changes.  Replace it with a driver private lock.

Also, as there are state changes in the ad7192_ write_raw function, a lock
is added to prevent the concurrent state changes.

Signed-off-by: Aastha Gupta <aastha.gupta4104@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2017-10-09 20:51:02 +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: ad7192: use driver private lock to protect hardware state changes 2017-10-09 20:51:02 +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: migrate in_illuminance0_integration_time sysfs attribute to iio_chan_spec 2017-10-09 20:50:28 +01:00
meter staging: iio: ade7753: expanding buffer lock to cover both buffer and state protection 2017-10-09 20:50:40 +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