Re: [PATCH v2 2/4] iio: backend: add devm_iio_backend_get_by_index()

From: David Lechner

Date: Mon Feb 09 2026 - 13:21:49 EST


On 2/9/26 10:47 AM, Nuno Sá wrote:

...

> uHu? Maybe I'm completely missing your point but what I had in mind was just something like: 
>
>
> // from the frontend:
>
> static const char * const names[] = { "adc1", "adc2" }

Yeah, that isn't so bad. (A "why didn't I think of that moment").

And I saw the other replies already, so a moot point anyway.

>
> for (c = 0; c < ARRAY_SIZE(names); c++) {
> back = devm_iio_backend_get(dev, names[c]);
> }
>