Trevor Gamblin
04eb94997e
iio: trigger: stm32-timer-trigger: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-41-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:48 +01:00
Trevor Gamblin
ac403e8ca2
iio: temperature: mlx90632: make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Acked-by: Crt Mori <cmo@melexis.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-40-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:48 +01:00
Trevor Gamblin
9ba22652b6
iio: proximity: sx_common: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-39-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:48 +01:00
Trevor Gamblin
734ecf9831
iio: proximity: sx9500: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-38-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:48 +01:00
Trevor Gamblin
3b8ec239b8
iio: proximity: sx9360: make use of regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-37-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:48 +01:00
Trevor Gamblin
f931cab767
iio: proximity: sx9324: make use of regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-36-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:48 +01:00
Trevor Gamblin
c470071e56
iio: pressure: bmp280-core: make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Tested-By: Vasileios Amoiridis <vassilisamir@gmail.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-35-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:48 +01:00
Trevor Gamblin
3b6f6e57ab
iio: magnetometer: mmc35240: make use of regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-34-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:47 +01:00
Trevor Gamblin
e93bd1721e
iio: magnetometer: ak8974: make use of regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-33-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:47 +01:00
Trevor Gamblin
df4083d388
iio: light: veml6030: make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-32-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:47 +01:00
Trevor Gamblin
feeae7fd1a
iio: light: st_uvis25_core: make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-31-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:47 +01:00
Trevor Gamblin
7832023d66
iio: light: isl29018: make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-30-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:47 +01:00
Trevor Gamblin
9ff43d2876
iio: light: iqs621-als: make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-29-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:47 +01:00
Trevor Gamblin
1131f1e720
iio: light: adux1020: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-28-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:47 +01:00
Trevor Gamblin
0e59dc9e6b
iio: imu: inv_icm42600: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-27-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:47 +01:00
Trevor Gamblin
5137358833
iio: health: max30102: make use of regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-26-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:46 +01:00
Trevor Gamblin
04f168577c
iio: health: max30100: make use of regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-25-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:46 +01:00
Trevor Gamblin
9d0142fc9e
iio: health: afe4404: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-24-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:46 +01:00
Trevor Gamblin
0c9f6639f5
iio: health: afe4403: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-23-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:46 +01:00
Trevor Gamblin
eceddd01eb
iio: gyro: mpu3050-core: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-22-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:46 +01:00
Trevor Gamblin
e5757bd8ce
iio: gyro: bmg160_core: make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-21-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:46 +01:00
Trevor Gamblin
c1cf171365
iio: dac: stm32-dac-core: make use of regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-20-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:46 +01:00
Trevor Gamblin
090510b902
iio: dac: ltc2688: make use of regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-19-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:46 +01:00
Trevor Gamblin
25091987c1
iio: adc: stm32-dfsdm-adc: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-18-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:46 +01:00
Trevor Gamblin
059fbfaa5d
iio: adc: sc27xx_adc: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-17-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:45 +01:00
Trevor Gamblin
cb3f8e0c63
iio: adc: rn5t618-adc: make use of regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-16-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:45 +01:00
Trevor Gamblin
550c246dd3
iio: adc: qcom-spmi-rradc: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-15-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:45 +01:00
Trevor Gamblin
5dcd6eb3ef
iio: adc: berlin2-adc: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://lore.kernel.org/r/20240617-review-v3-8-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:45 +01:00
Trevor Gamblin
e3007f6d59
iio: adc: mp2629_adc: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-14-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:45 +01:00
Trevor Gamblin
72df0511c1
iio: adc: meson_saradc: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Reviewed-by: George Stark <gnstark@salutedevices.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-13-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:45 +01:00
Trevor Gamblin
0544a8c2fb
iio: adc: intel_mrfld_adc: make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-12-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:45 +01:00
Trevor Gamblin
a47d466d7c
iio: adc: ina2xx-adc: make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-11-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:45 +01:00
Trevor Gamblin
b040275a77
iio: adc: fsl-imx25-gcq: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-10-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:44 +01:00
Trevor Gamblin
c46a955a26
iio: adc: cpcap-adc: make use of regmap_clear_bits(), regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-9-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:44 +01:00
Trevor Gamblin
a0e3573e4b
iio: adc: bcm_iproc_adc: make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-7-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:44 +01:00
Trevor Gamblin
6e19587202
iio: adc: axp288_adc: make use of regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-6-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:44 +01:00
Trevor Gamblin
4796fed269
iio: adc: axp20x_adc: make use of regmap_set_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-5-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:44 +01:00
Trevor Gamblin
52248aea53
iio: adc: ad4130: make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-4-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:44 +01:00
Trevor Gamblin
4ed403d823
iio: accel: msa311: make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-3-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:44 +01:00
Trevor Gamblin
41aea49053
iio: accel: kxsd9: Make use of regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Reviewed-by: Linus Walleij <linus.walleij@linaro.org >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-2-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:43 +01:00
Trevor Gamblin
1b3d0fc286
iio: accel: fxls8962af-core: Make use of regmap_set_bits(), regmap_clear_bits()
...
Instead of using regmap_update_bits() and passing the mask twice, use
regmap_set_bits().
Instead of using regmap_update_bits() and passing val = 0, use
regmap_clear_bits().
Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com >
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com >
Link: https://patch.msgid.link/20240617-review-v3-1-88d1338c4cca@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:43 +01:00
Dumitru Ceclan
13d12e3ad1
iio: adc: ad7173: Add support for AD411x devices
...
Add support for AD4111/AD4112/AD4114/AD4115/AD4116.
The AD411X family encompasses a series of low power, low noise, 24-bit,
sigma-delta analog-to-digital converters that offer a versatile range of
specifications.
This family of ADCs integrates an analog front end suitable for processing
both fully differential and single-ended, bipolar voltage inputs
addressing a wide array of industrial and instrumentation requirements.
- All ADCs have inputs with a precision voltage divider with a division
ratio of 10.
- AD4116 has 5 low level inputs without a voltage divider.
- AD4111 and AD4112 support current inputs (0 mA to 20 mA) using a 50ohm
shunt resistor.
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: David Lechner <dlechner@baylibre.com >
Link: https://patch.msgid.link/20240607-ad4111-v7-9-97e3855900a0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:43 +01:00
Dumitru Ceclan
f87b076b93
iio: adc: ad7173: document sampling frequency behaviour
...
The ADCs supported by this driver feature a sequencer that read in a
loop all the enabled chanels. When setting the individual sampling
frequency for each channel and enabling multiple channels, the effective
of each channel will be lower than the actual set value. Document this
behaviour in a comment.
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com >
Reviewed-by: David Lechner <dlechner@baylibre.com >
Link: https://patch.msgid.link/20240607-ad4111-v7-8-97e3855900a0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:43 +01:00
Dumitru Ceclan
0f360d489e
iio: adc: ad7173: refactor device info structs
...
Drop setting .has_temp and .has_input_buf to false in device info struct.
Drop array of device info structs and use individual structs for all;
drop models enum as no longer needed. This improves readability as the
structs are pointed directly.
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com >
Reviewed-by: David Lechner <dlechner@baylibre.com >
Link: https://patch.msgid.link/20240607-ad4111-v7-7-97e3855900a0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:43 +01:00
Dumitru Ceclan
ff05b4a86d
iio: adc: ad7173: add support for special inputs
...
Add support for selecting REF+ and REF- inputs on all models.
Add support for selecting ((AVDD1 − AVSS)/5) inputs
on supported models.
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: David Lechner <dlechner@baylibre.com >
Link: https://patch.msgid.link/20240607-ad4111-v7-6-97e3855900a0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:43 +01:00
Dumitru Ceclan
fc5cdff065
iio: adc: ad7173: refactor ain and vref selection
...
Move validation of analog inputs and reference voltage selection to
separate functions to reduce the size of the channel config parsing
function and improve readability.
Add defines for the number of analog inputs in a channel.
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: David Lechner <dlechner@baylibre.com >
Link: https://patch.msgid.link/20240607-ad4111-v7-5-97e3855900a0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:43 +01:00
Dumitru Ceclan
137a83a66f
iio: adc: ad7173: refactor channel configuration parsing
...
Move configurations regarding number of channels from
*_fw_parse_device_config to *_fw_parse_channel_config.
Suggested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
Link: https://lore.kernel.org/all/20240303162148.3ad91aa2@jic23-huawei/
Reviewed-by: David Lechner <dlechner@baylibre.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com >
Link: https://patch.msgid.link/20240607-ad4111-v7-4-97e3855900a0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:43 +01:00
Dumitru Ceclan
98a563de23
iio: adc: ad_sigma_delta: add disable_one callback
...
Sigma delta ADCs with a sequencer need to disable the previously enabled
channel when reading using ad_sigma_delta_single_conversion(). This was
done manually in drivers for devices with sequencers.
This patch implements handling of single channel disabling after a
single conversion.
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com >
Reviewed-by: David Lechner <dlechner@baylibre.com >
Link: https://patch.msgid.link/20240607-ad4111-v7-3-97e3855900a0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-25 21:04:32 +01:00
Dumitru Ceclan
561b5d5b7f
dt-bindings: adc: ad7173: add support for ad411x
...
Add support for: AD4111, AD4112, AD4114, AD4115, AD4116.
AD411x family ADCs support a VCOM pin. The purpose of this pin is to
offer a dedicated common-mode voltage input for single-ended channels.
This pin is specified as supporting a differential channel with VIN10 on
model AD4116.
AD4111/AD4112 support current channels. Support is implemented using
single-channel and "adi,current-channel".
Reviewed-by: Conor Dooley <conor.dooley@microchip.com >
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: David Lechner <dlechner@baylibre.com >
Link: https://patch.msgid.link/20240607-ad4111-v7-2-97e3855900a0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-22 10:52:49 +01:00
Dumitru Ceclan
d86deaec1c
dt-bindings: iio: adc: Add common-mode-channel property
...
There are ADCs that are differential but support to measure single-ended
signals on the same channels by connecting a constant voltage to the
negative input pin.
This property allows to properly define a single-ended channel that
requires two inputs to be specified. Software can use the presence of
this property to mark the channel as not differential.
Reviewed-by: Conor Dooley <conor.dooley@microchip.com >
Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com >
Reviewed-by: Nuno Sa <nuno.sa@analog.com >
Reviewed-by: David Lechner <dlechner@baylibre.com >
Link: https://patch.msgid.link/20240607-ad4111-v7-1-97e3855900a0@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com >
2024-06-22 10:52:38 +01:00