aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2017-07-21 00:24:26 +0900
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-08-20 15:41:17 +0100
commit47d8cf41d501902be523b9e3cf1909413cc19e97 (patch)
treee5b8cb3ad7dcd6aa31c72090b0f961c2af5e2c6f /tools/perf/scripts/python/export-to-postgresql.py
parentiio: adc: ti-ads1015: use devm_iio_triggered_buffer_setup (diff)
downloadwireguard-linux-47d8cf41d501902be523b9e3cf1909413cc19e97.tar.xz
wireguard-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/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions