[PATCH 1/9] fdtdec: Allow using fdtdec_get_carveout() in loops

Simon Glass sjg at chromium.org
Thu Sep 30 06:09:18 CEST 2021


On Fri, 3 Sept 2021 at 07:16, Thierry Reding <thierry.reding at gmail.com> wrote:
>
> From: Thierry Reding <treding at nvidia.com>
>
> In order make it possible to use fdtdec_get_carveout() in loops, return
> FDT_ERR_NOTFOUND when the passed-in index exceeds the number of phandles
> present in the given property.
>
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> ---
>  lib/fdtdec.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list