Re: [PATCH] sysinfo: gpio: fix loop over DT "revisions" array

2023-03-31 Thread Tom Rini
On Fri, Mar 10, 2023 at 11:58:03AM +0100, Rasmus Villemoes wrote: > There can certainly be a lot more elements in the "revisions" (and > "names") arrays than there are gpios used to form the trinary number > we're searching for; we simply don't know the array size up-front. > > Nor do we need

Re: [PATCH] sysinfo: gpio: fix loop over DT "revisions" array

2023-03-13 Thread Sean Anderson
On 3/10/23 05:58, Rasmus Villemoes wrote: > There can certainly be a lot more elements in the "revisions" (and > "names") arrays than there are gpios used to form the trinary number > we're searching for; we simply don't know the array size up-front. > > Nor do we need to, because the loop body

Re: [PATCH] sysinfo: gpio: fix loop over DT "revisions" array

2023-03-10 Thread Simon Glass
On Fri, 10 Mar 2023 at 02:58, Rasmus Villemoes wrote: > > There can certainly be a lot more elements in the "revisions" (and > "names") arrays than there are gpios used to form the trinary number > we're searching for; we simply don't know the array size up-front. > > Nor do we need to, because

[PATCH] sysinfo: gpio: fix loop over DT "revisions" array

2023-03-10 Thread Rasmus Villemoes
There can certainly be a lot more elements in the "revisions" (and "names") arrays than there are gpios used to form the trinary number we're searching for; we simply don't know the array size up-front. Nor do we need to, because the loop body already knows to recognize -EOVERFLOW as "not that