Files
u-boot/drivers
Rasmus Villemoes 19213d7a65 sysinfo: gpio: fix loop over DT "revisions" array
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 many elements present" (and we have a test
that specifically ensures that dev_read_u32_index() returns exactly
that). So just drop the i < priv->gpio_num condition.

While in here, fix the weird placement of the default: keyword.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
2023-03-30 15:09:59 -04:00
..
2023-03-03 09:49:02 -05:00
2023-02-10 07:41:39 -05:00
2021-10-05 08:50:15 -04:00
2022-09-16 11:05:16 -04:00
2022-01-13 07:57:49 -05:00
2023-03-02 17:45:57 -05:00
2023-03-27 15:19:57 -04:00
2023-03-09 13:15:00 +01:00
2023-03-02 17:45:58 -05:00
2023-03-18 12:02:38 +01:00
2023-01-20 12:27:24 -05:00
2023-03-14 12:06:35 -04:00
2023-03-02 17:45:58 -05:00
2023-03-18 12:04:02 +01:00
2023-01-24 13:55:05 +01:00
2022-10-11 16:03:03 -04:00
2023-03-27 15:19:57 -04:00
2023-03-14 12:06:35 -04:00
2023-02-10 07:41:41 -05:00
2023-03-02 17:45:58 -05:00