[U-Boot] [PATCH v4 05/13] regmap: Introduce init_range

Anatolij Gustschin agust at denx.de
Mon Aug 6 13:10:04 UTC 2018


On Fri,  3 Aug 2018 10:01:10 +0200
Mario Six mario.six at gdsys.cc wrote:

> Both fdtdec_get_addr_size_fixed and of_address_to_resource can fail with
> an error, which is not currently checked during regmap initialization.
> 
> Since the indentation depth is already quite deep, extract a new
> 'init_range' method to do the initialization.
> 
> Reviewed-by: Anatolij Gustschin <agust at denx.de>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Signed-off-by: Mario Six <mario.six at gdsys.cc>
> 
> ---
> 
> v3 -> v4:
> * Introduced else clause in of_live_active() if statement to make the
>   distinction between live and non-live cases clearer
> 
> v2 -> v3:
> New in v3
> 
> ---
>  drivers/core/regmap.c | 68 ++++++++++++++++++++++++++++++++++++++++++---------
>  1 file changed, 56 insertions(+), 12 deletions(-)

Applied to u-boot-staging/agust at denx.de, thanks!

--
Anatolij


More information about the U-Boot mailing list