[PATCH v2] iio: dac: ad5592r-base: Replace indio_dev->mlock with own device lock

2020-05-20 Thread Sergiu Cuciurean
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 --- drivers/iio/dac/ad5592r-base.c | 30 +++--- drivers/iio/

[PATCH] iio: dac: ad5592r-base: Replace indio_dev->mlock with own device lock

2020-05-20 Thread Sergiu Cuciurean
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 --- drivers/iio/dac/ad5592r-base.c | 28 +++- drivers/iio/dac/ad5592r-base.h | 1 + 2 files changed,

[PATCH] iio: dac: ad5686: Replace indio_dev->mlock with own device lock

2020-05-14 Thread Sergiu Cuciurean
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 --- drivers/iio/dac/ad5686.c | 10 ++ drivers/iio/dac/ad5686.h | 2 ++ 2 files changed, 8 insertions(+), 4 deletions(-) d

[PATCH] iio: dac: ad5421: Replace indio_dev->mlock with own device lock

2020-05-14 Thread Sergiu Cuciurean
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 --- drivers/iio/dac/ad5421.c | 21 + 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/drivers/iio/

[PATCH] iio: dac: ad5380: Replace indio_dev->mlock with own device lock

2020-05-14 Thread Sergiu Cuciurean
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 --- drivers/iio/dac/ad5380.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/iio/dac/ad5380.

[PATCH] iio: dac: ad5764: Replace indio_dev->mlock with own device lock

2020-05-14 Thread Sergiu Cuciurean
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 --- drivers/iio/dac/ad5764.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/iio/dac/ad5764.

[PATCH] iio: dac: ad5761: Replace indio_dev->mlock with own device lock

2020-05-14 Thread Sergiu Cuciurean
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 --- drivers/iio/dac/ad5761.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/iio/dac/ad5761.

[PATCH] iio: dac: ad5755: Replace indio_dev->mlock with own device lock

2020-05-14 Thread Sergiu Cuciurean
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: Ser

[PATCH] iio: dac: ad5449: Replace indio_dev->mlock with own device lock

2020-05-14 Thread Sergiu Cuciurean
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 --- drivers/iio/dac/ad5449.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/iio/dac/ad5449.

[PATCH] iio: dac: ad5446: Replace indio_dev->mlock with own device lock

2020-05-14 Thread Sergiu Cuciurean
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 --- drivers/iio/dac/ad5446.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/iio/dac/ad5446.

[PATCH] iio: dac: vf610_dac: Replace indio_dev->mlock with own device lock

2020-05-14 Thread Sergiu Cuciurean
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 --- drivers/iio/dac/vf610_dac.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/iio/

[PATCH] iio: stm32-dac: Replace indio_dev->mlock with own device lock

2020-05-14 Thread Sergiu Cuciurean
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 --- drivers/iio/dac/stm32-dac.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/iio/dac/st

[PATCH] iio: dac: ad5360: Replace indio_dev->mlock with own device lock

2020-05-14 Thread Sergiu Cuciurean
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: Ser

[PATCH] iio: adc: ad7768-1: Fix channel endian spec

2020-04-29 Thread Sergiu Cuciurean
This change removes the endian description from the iio channel spec. In this way, the default (IIO_CPU) endian will be used, matching the be32_to_cpu() conversion from ad7768_spi_reg_read(). Fixes: 8a15c73a9bcfe ("iio: adc: Add AD7768-1 ADC basic support") Signed-off-by: Sergiu