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. :-)