[RFC PATCH 04/13] core: ofnode: Fix inconsistent returns of *_read_u32_array

Simon Glass sjg at chromium.org
Sun Feb 7 15:37:38 CET 2021


On Thu, 4 Feb 2021 at 21:39, Sean Anderson <seanga2 at gmail.com> wrote:
>
> The documentation for dev_read_u32_array says the return value is an errno,
> but fdtdec_get_int_array returns FDT_ERRs. Convert the return values so
> callers can handle errors properly.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
>  drivers/core/ofnode.c | 15 ++++++++++++---
>  1 file changed, 12 insertions(+), 3 deletions(-)

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

This could really use a driver model test so that both options are
automatically checked.


More information about the U-Boot mailing list