On 2026-03-31T08:01:10, Ilias Apalodimas <[email protected]> wrote:
> fdtdec: Deduplicate iterator function
>
> Both fdtdec_setup_memory_banksize() and fdtdec_setup_mem_size_base_lowest()
> implement the exact same iterator over all memory banks, the only difference
> is the body that is executed for each bank. Deduplicate the functionality
> into iterator function fdtdec_setup_mem_for_each_bank(), which takes a
> function pointer to a function which implements the body as a parameter.
> No functional change.
>
> Reviewed-by: Ilias Apalodimas <[email protected]>
> Signed-off-by: Ilias Apalodimas <[email protected]>
> Signed-off-by: Marek Vasut <[email protected]>
> Reviewed-by: Anshul Dalal <[email protected]>
>
> lib/fdtdec.c | 77 +++++++++++++++++++++++-------------------------------------
>  1 file changed, 30 insertions(+), 47 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to