From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sat, 5 Aug 2017 21:23:37 +0200 Subject: [U-Boot] [PATCH 1/5] mmc: uniphier-sd: Factor out register IO In-Reply-To: References: <20170721212436.26073-1-marek.vasut+renesas@gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 08/03/2017 02:36 PM, Masahiro Yamada wrote: > Hi Marek, Hi, [...] >> +static u32 uniphier_sd_readl(struct uniphier_sd_priv *priv, const u32 reg) > > "const" is unneeded here. Why? The function should not modify reg , so it is const. > Also, could you use "unsigned int" or "int" for reg? Why? >> +{ >> + return readl(priv->regbase + reg); >> +} >> + >> +static void uniphier_sd_writel(struct uniphier_sd_priv *priv, >> + const u32 val, const u32 reg) > > Same here. Please drop "const". > > Please use "unsigned int" or "int" for reg > > It is OK to use u32 for val. > > > > -- Best regards, Marek Vasut