From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Mon, 6 Aug 2018 15:10:04 +0200 Subject: [U-Boot] [PATCH v4 05/13] regmap: Introduce init_range In-Reply-To: <20180803080118.27748-5-mario.six@gdsys.cc> References: <20180803080118.27748-1-mario.six@gdsys.cc> <20180803080118.27748-5-mario.six@gdsys.cc> Message-ID: <20180806151004.3981dbd9@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reviewed-by: Simon Glass > Signed-off-by: Mario Six > > --- > > 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