Thread (21 messages) 21 messages, 5 authors, 2025-02-17

Re: [PATCH v2 2/5] iio: adc: add helpers for parsing ADC nodes

From: David Lechner <dlechner@baylibre.com>
Date: 2025-02-17 16:05:40
Also in: linux-iio, lkml

On 2/17/25 12:29 AM, Matti Vaittinen wrote:
Hi David!

Thanks for the input!
...
Absolutely. I had no intention to do anything hardware specific with these helpers. What I'd love to see is IIO-helpers which allowed passing device pointer and a pointer to iio_info - and getting the (known by the helper) device-tree properties parsed and filled in iio_info.

This sure does not help more complex drivers which require some 'not easily parsed' data from the device tree. But for simple drivers like the BD79124 this would allow drivers to omit open-coding the loop locating the channel nodes and getting the channel data.

Maybe a small improvement but one can't deny it still is an improvement, right? :)

Yours,
 -- Matti
If there are a decent number of drivers that can make use of it,
then sure. I'm a bit biased because I've been working on some
rather complex ADCs lately and not any simple ones. :-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help