iio: dac: ad5360: Replace indio_dev->mlock with own device lock
authorSergiu Cuciurean <sergiu.cuciurean@analog.com>
Thu, 14 May 2020 08:39:19 +0000 (11:39 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 May 2020 15:11:14 +0000 (16:11 +0100)
commit2bbf7c6b705ca30c08453d198adaf43a105ce37c
tree932a3a372c61b096402e6196003cbd8761d815bc
parent6198bdb48922c03348724d1a4d528d34c548abaa
iio: dac: ad5360: 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 changes some internal functions to pass the pointer to the
state-struct vs a ref to indio_dev just to access the state-struct again.

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