OSDN Git Service

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)
commit69f894c3f3185d3826ea6573afb282386b797acf
tree98174b8746cd8b1ed3bcdde9205b6fd34e2b0092
parentc344a327baefc372b7f4b7d0c17ac8b417ceaf94
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