iio: dac: ad5449: Replace indio_dev->mlock with own device lock
authorSergiu Cuciurean <sergiu.cuciurean@analog.com>
Thu, 14 May 2020 09:01:49 +0000 (12:01 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 16 May 2020 15:16:14 +0000 (16:16 +0100)
commitb0ffd3b6d239320124e1d9c584fa25bcefcbbbce
tree350d66340135e0cbd010eaf5a509c0cb142dfcae
parent0b4b5925bf16c83c40c4a71e78921d60db840dc2
iio: dac: ad5449: 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/ad5449.c