pinctrl: sh-pfc: Use u32 to store register addresses
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 12 Mar 2015 10:09:16 +0000 (11:09 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 18 Mar 2015 01:15:40 +0000 (02:15 +0100)
commit1f34de05e75a26e8f4dfe7566fe80309aabf10b7
treefce210834fe77de73f74af5c78b934ea279bed13
parent17c7cbb0e7b7a877f1ce2063d7f869801b24cd6a
pinctrl: sh-pfc: Use u32 to store register addresses

Currently all PFC registers lie in low 32-bit address space. Hence use
u32 instead of unsigned long to store PFC register addresses in pinctrl
tables.  All calculations of virtual addresses use a phys_addr_t
intermediate, so we know where to add an offset if the 32-bit assumption
ever becomes false.

While this doesn't impact 32-bit builds, it would save ca. 7 KiB on a
64-bit shmobile_defconfig kernel.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sh-pfc/core.c
drivers/pinctrl/sh-pfc/gpio.c
drivers/pinctrl/sh-pfc/sh_pfc.h