iio: dac: ad5761: Replace indio_dev->mlock with own device lock
authorSergiu Cuciurean <sergiu.cuciurean@analog.com>
Thu, 14 May 2020 09:10:28 +0000 (12:10 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 May 2020 15:23:09 +0000 (16:23 +0100)
commit19710bffe4bc00bb1640e32c0f6d0408cbf566f7
treea6543d8df08bf42c8bcb72b8472dde65a4c1a88e
parenta49e961c7c0aecd2cffaf686e2d91b510c0d8405
iio: dac: ad5761: 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/ad5761.c