The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iio: adc: ad799x: reference voltage capability
@ 2025-08-07  7:48 Stefano Manni
  2025-08-07  7:48 ` [PATCH v2 1/2] iio: adc: ad799x: add reference voltage capability to chip_info Stefano Manni
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Stefano Manni @ 2025-08-07  7:48 UTC (permalink / raw)
  To: lars, Michael.Hennerich, jic23, dlechner, nuno.sa, andy
  Cc: linux-iio, linux-kernel, Stefano Manni

This patch series refactors 6b104e7895ab16b9b7f466c5f2ca282b87f661e8
in order to add the capability of the chip to have an
external reference voltage into the chip_info struct.
And so avoid ugly conditional checks on the chip id.

In addition the AD7994 is marked to have the external
reference voltage as well.

Changes in v2 compared to v1 [1]:
* remove has_vref from the chips that do not support it,
  rely on the default false value
* remove useless message "Supplied reference not supported"
  shown for all the chips with has_vref = false
* refactor check on regulator being err or zero
* add external reference to ad7994 as oneliner

[1] https://lore.kernel.org/linux-iio/20250806090158.117628-1-stefano.manni@gmail.com/

Stefano Manni (2):
  iio: adc: ad799x: add reference voltage capability to chip_info
  iio: adc: ad799x: add reference voltage to ad7994

 drivers/iio/adc/ad799x.c | 30 +++++++++++++-----------------
 1 file changed, 13 insertions(+), 17 deletions(-)

-- 
2.48.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-08-09 19:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-07  7:48 [PATCH v2 0/2] iio: adc: ad799x: reference voltage capability Stefano Manni
2025-08-07  7:48 ` [PATCH v2 1/2] iio: adc: ad799x: add reference voltage capability to chip_info Stefano Manni
2025-08-07 21:05   ` Andy Shevchenko
2025-08-07  7:48 ` [PATCH v2 2/2] iio: adc: ad799x: add reference voltage to ad7994 Stefano Manni
2025-08-07 21:06   ` Andy Shevchenko
2025-08-07 15:47 ` [PATCH v2 0/2] iio: adc: ad799x: reference voltage capability David Lechner
2025-08-09 19:33   ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox