iio: dac: ad5755: Replace indio_dev->mlock with own device lock
authorSergiu Cuciurean <sergiu.cuciurean@analog.com>
Thu, 14 May 2020 09:06:05 +0000 (12:06 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 May 2020 15:17:35 +0000 (16:17 +0100)
commita49e961c7c0aecd2cffaf686e2d91b510c0d8405
treeb80e7e19845e47cb2179e6ec31fafa466edc8b01
parentb0ffd3b6d239320124e1d9c584fa25bcefcbbbce
iio: dac: ad5755: 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/ad5755.c