summaryrefslogtreecommitdiffstats
path: root/fs/hfs/bnode.c
diff options
context:
space:
mode:
authorAastha Gupta <aastha.gupta4104@gmail.com>2017-09-27 12:01:59 +0530
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2017-10-09 20:51:02 +0100
commit2db82e320da766c6d8a3d9c9d1cc4c45580fd701 (patch)
tree492d1879e9ad3a859000fb4fb65c0e93e913ac19 /fs/hfs/bnode.c
parent103f3afe91858a7c3b9115e197ddaa0cb63dbdf2 (diff)
downloadlinux-stable-2db82e320da766c6d8a3d9c9d1cc4c45580fd701.tar.gz
linux-stable-2db82e320da766c6d8a3d9c9d1cc4c45580fd701.tar.bz2
linux-stable-2db82e320da766c6d8a3d9c9d1cc4c45580fd701.zip
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>
Diffstat (limited to 'fs/hfs/bnode.c')
0 files changed, 0 insertions, 0 deletions