Add support for setting offset range (calibration) for the ad9434
and fixup vref mask handling.
Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>
---
Changes in v3:
- Removed comment about transfer as it is generally known to a familiar reader
that the operation is required for specific registers
- Aligned indendation with recommendations
- Link to v2: https://lore.kernel.org/r/20251202-ad9434-fixes-v2-0-fa73d4eabbea@vaisala.com
Changes in v2:
Updates according to received feedback:
- embed ad9434 channel description instead of resorting to macro
- change INFO_OFFSET to INFO_CALIBBIAS
- keep offset value untouched in case of error
- drop length from avail_range
- Link to v1: https://lore.kernel.org/r/20251201-ad9434-fixes-v1-0-54a9ca2ac514@vaisala.com
---
Tomas Melin (2):
iio: adc: ad9467: fix ad9434 vref mask
iio: adc: ad9467: support write/read offset
drivers/iio/adc/ad9467.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 60 insertions(+), 2 deletions(-)
---
base-commit: 9b9e43704d2b05514aeeaea36311addba2c72408
change-id: 20251201-ad9434-fixes-6dfdc86fb881
Best regards,
--
Tomas Melin <tomas.melin@vaisala.com>