diff options
author | Sergiu Cuciurean <sergiu.cuciurean@analog.com> | 2020-05-20 15:02:01 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-05-21 19:37:05 +0100 |
commit | 33c53cbf8f7bc8d62f6146a19da97c8594376ff0 (patch) | |
tree | 422a59cc572db1dbb45346ec95a17a7f62f51103 /drivers/iio/dac/ad5592r-base.h | |
parent | ac101e6b315bfeb5a4f43a962f589e567855c177 (diff) |
iio: dac: ad5592r-base: 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 removes unused iio_dev pointers.
Signed-off-by: Sergiu Cuciurean <sergiu.cuciurean@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/dac/ad5592r-base.h')
-rw-r--r-- | drivers/iio/dac/ad5592r-base.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/dac/ad5592r-base.h b/drivers/iio/dac/ad5592r-base.h index 4774e4cd9c11..23dac2f1ff8a 100644 --- a/drivers/iio/dac/ad5592r-base.h +++ b/drivers/iio/dac/ad5592r-base.h @@ -52,6 +52,7 @@ struct ad5592r_state { struct regulator *reg; struct gpio_chip gpiochip; struct mutex gpio_lock; /* Protect cached gpio_out, gpio_val, etc. */ + struct mutex lock; unsigned int num_channels; const struct ad5592r_rw_ops *ops; int scale_avail[2][2]; |