iio: dac: ad5686: Replace indio_dev->mlock with own device lock
authorSergiu Cuciurean <sergiu.cuciurean@analog.com>
Thu, 14 May 2020 09:19:38 +0000 (12:19 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 May 2020 15:29:54 +0000 (16:29 +0100)
commit0b2884ef7fcad881556b79828a96f359c7f1fab6
tree1b5f5746db148aa3cd1d9690377fa3422bd65f52
parent9bc17892d60be3c3942f9da04b3e70b6900655cb
iio: dac: ad5686: 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/ad5686.c
drivers/iio/dac/ad5686.h