[PATCH 0/5] iio: adc: ad4030: scan_type cleanups

From: David Lechner
Date: Mon Mar 10 2025 - 16:43:18 EST


This started as patch to address an unchecked error return of
iio_get_current_scan_type(). Then while looking at other code related
to getting the scan_type, I noticed some opportunities to simplify the
driver a bit by removing some redundant code and clear up some things
that were not so obvious to me.

Signed-off-by: David Lechner <dlechner@xxxxxxxxxxxx>
---
David Lechner (5):
iio: adc: ad4030: check scan_type for error
iio: adc: ad4030: remove some duplicate code
iio: adc: ad4030: move setting mode to update_scan_mode
iio: adc: ad4030: don't store scan_type in state
iio: adc: ad4030: explain rearranging raw sample data

drivers/iio/adc/ad4030.c | 60 +++++++++++++++++++++++++-----------------------
1 file changed, 31 insertions(+), 29 deletions(-)
---
base-commit: 66cadadbc94e18070245af7053f115061a73f016
change-id: 20250310-iio-adc-ad4030-check-scan-type-err-0858c3e3519c

Best regards,
--
David Lechner <dlechner@xxxxxxxxxxxx>