mbox series

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

Message ID 20250310-iio-adc-ad4030-check-scan-type-err-v1-0-589e4ebd9711@baylibre.com (mailing list archive)
Headers show
Series iio: adc: ad4030: scan_type cleanups | expand

Message

David Lechner March 10, 2025, 8:43 p.m. UTC
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@baylibre.com>
---
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,