iio: dac: ad5446: Replace indio_dev->mlock with own device lock
authorSergiu Cuciurean <sergiu.cuciurean@analog.com>
Thu, 14 May 2020 09:00:42 +0000 (12:00 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 May 2020 15:14:36 +0000 (16:14 +0100)
commit0b4b5925bf16c83c40c4a71e78921d60db840dc2
tree894cdcf762c1516eec2326f67b62a506a4747d09
parent2bbf7c6b705ca30c08453d198adaf43a105ce37c
iio: dac: ad5446: Replace indio_dev->mlock with own device lock

As part of the general cleanup of indio_dev->mlock, this change replaces
it with a local lock on the device's state structure.

Signed-off-by: Sergiu Cuciurean <sergiu.cuciurean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5446.c