]> git.baikalelectronics.ru Git - kernel.git/commit
iio: ad9523: replace core mlock with local lock
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 5 Jul 2018 12:34:22 +0000 (15:34 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Jul 2018 18:18:11 +0000 (19:18 +0100)
commit4eb474c66996fe71efa37f51f765fc29370ea37b
tree98174b8746cd8b1ed3bcdde9205b6fd34e2b0092
parent984a1c0921be6b97ec8314b7eafc96be2357bbc3
iio: ad9523: replace core mlock with local lock

This is also part of a long term effort to make the use of mlock opaque and
single purpose.

This lock is required for accessing device registers. The device may be
accessed by multiple processes at the same time, and this can result in
inconsistent data, where one device reads data before the other one has
finished writing.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/frequency/ad9523.c