summaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2017-07-20 17:24:26 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-08-20 16:41:17 +0200
commit47d8cf41d501902be523b9e3cf1909413cc19e97 (patch)
treee5b8cb3ad7dcd6aa31c72090b0f961c2af5e2c6f /tools/perf
parentiio: adc: ti-ads1015: use devm_iio_triggered_buffer_setup (diff)
downloadlinux-47d8cf41d501902be523b9e3cf1909413cc19e97.tar.xz
linux-47d8cf41d501902be523b9e3cf1909413cc19e97.zip
iio: adc: ti-ads1015: use iio_device_claim_direct_mode()
While the iio buffer for the ti-ads1015 driver is enabled, reading the raw ADC channel data is restricted. We usually use the iio_device_claim_direct_mode()/iio_device_release_direct_mode() pair for that. This change consequently reverses the locking order for the driver's private lock and indio_dev->mlock which acquired by iio_device_claim_direct_mode() internally. But it's safe because there is no other dependency between these locks. Cc: Daniel Baluta <daniel.baluta@gmail.com> Cc: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions