iio: dac: ad5592r-base: Replace indio_dev->mlock with own device lock
authorSergiu Cuciurean <sergiu.cuciurean@analog.com>
Wed, 20 May 2020 12:02:01 +0000 (15:02 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 21 May 2020 18:37:05 +0000 (19:37 +0100)
commit33c53cbf8f7bc8d62f6146a19da97c8594376ff0
tree422a59cc572db1dbb45346ec95a17a7f62f51103
parentac101e6b315bfeb5a4f43a962f589e567855c177
iio: dac: ad5592r-base: 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.
This also removes unused iio_dev pointers.

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