> + for (i = 0; i < list_cells; cur_index++) {
> + const u32 *cells;
> + const phandle *phandle;
> +
> + phandle = list + i;
> + args = phandle + 1;
Rather than incrementing i, I would just use a running pointer "list"
and drop "i" totally. Not
The helper is factored out of of_get_gpio(). Will be used by the QE
pin multiplexing functions (they need to parse the gpios = <> too).
Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]>
---
drivers/of/base.c | 111
drivers/of/gpio.c | 77
Factored out of of_get_gpio(). Will be used by the QE pin multiplexing
functions (they need to parse the gpios = <> too).
Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]>
---
drivers/of/base.c | 111
drivers/of/gpio.c | 77 +++---