[PATCH] ARM: shmobile: rcar-gen2: Add more register documentation

Sergei Shtylyov sergei.shtylyov at cogentembedded.com
Fri Jan 20 08:21:02 PST 2017


On 01/20/2017 04:04 PM, Geert Uytterhoeven wrote:

> Signed-off-by: Geert Uytterhoeven <geert+renesas at glider.be>
> ---
>  arch/arm/mach-shmobile/pm-rcar-gen2.c | 40 +++++++++++++++++++++++++----------
>  1 file changed, 29 insertions(+), 11 deletions(-)
>
> diff --git a/arch/arm/mach-shmobile/pm-rcar-gen2.c b/arch/arm/mach-shmobile/pm-rcar-gen2.c
> index dd9ac366868f4336..6ed9aa19c4d34766 100644
> --- a/arch/arm/mach-shmobile/pm-rcar-gen2.c
> +++ b/arch/arm/mach-shmobile/pm-rcar-gen2.c
> @@ -20,14 +20,30 @@
[...]
> +static inline u32 phys_to_sbar(phys_addr_t addr)
> +{
> +	return (((addr) >> 8) & 0xfffffc00);

   It's not a macro -- innermost parens not needed...

[...]

MBR, Sergei




More information about the linux-arm-kernel mailing list