[PATCH v2 1/4] fdtdec: Deduplicate iterator function

Anshul Dalal anshuld at ti.com
Wed Apr 1 12:25:00 CEST 2026


On Tue, 31 Mar 2026 11:01:11 +0300, Ilias Apalodimas <ilias.apalodimas at linaro.org> wrote:
> 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: Anshul Dalal <anshuld at ti.com>

-- 
Anshul Dalal <anshuld at ti.com>


More information about the U-Boot mailing list