Skip to content

RFC iio: adc: ad7476: Simplifications

Matti Vaittinen linux-iio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2iio: adc: ad7476: Simplify chip type detectiondrivers/iio/adc/ad7476.c+143 -1496 replies
2/2iio: adc: ad7476: Simplify scale handlingdrivers/iio/adc/ad7476.c+21 -633 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNuno Sá
SeriesR-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/2] iio: adc: ad7476: Simplifications

This series suggests some simplifications to the ad7476 ADC. It is currently 100% untested, and shouldn't be merged as is. I'd like to hear opinions on these changes before adding support to the ROHM BD79105 ADC.

Intention of the patch 1 is pretty trivial. I'd just like to hear if people think the enum + ID table approach is preferred over direct pointers to IC specific structs in SPI device's driver_data.

Real reason for the RFC version is the patch 2. It aims to clear the supply handling logic. I did also an alternate version which requires the names of the regulators to be provided in the chip_data:
https://github.com/M-Vaittinen/linux/commit/cf5b3078feb17f9a0069b2c7c86f6d980e879356

I believe the version in the link --^
is clearer, but it can potentially help people to add issues with supply enable ordering.

I can't still say if the patch 2 contained in this series is better, or if the one behind the link is better way to go. So, RFC it is :)

Matti Vaittinen (2):
iio: adc: ad7476: Simplify chip type detection
iio: adc: ad7476: Simplify scale handling

 drivers/iio/adc/ad7476.c | 376 +++++++++++++++++----------------------
 1 file changed, 164 insertions(+), 212 deletions(-)
Signature · 1 line
2.50.1