summaryrefslogtreecommitdiffstats
path: root/drivers/hv
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 /drivers/hv
parent4de43d250672ae9f34ed4d9279235807ca4d66d3 (diff)
downloadop-kernel-dev-47d8cf41d501902be523b9e3cf1909413cc19e97.zip
op-kernel-dev-47d8cf41d501902be523b9e3cf1909413cc19e97.tar.gz
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 'drivers/hv')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud