diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2013-04-09 06:54:18 +0200 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-06-04 14:04:03 +0200 |
commit | de9edf7d2c816c80337a79fc9d0cff8f4ceb42c0 (patch) | |
tree | 21fa03769b46fc661961668d7cb38e29a5643253 /drivers/pinctrl/sh-pfc/pfc-r8a7779.c | |
parent | sh-pfc: r8a7779: Replace hardcoded pin numbers with RCAR_GP_PIN macro (diff) | |
download | linux-de9edf7d2c816c80337a79fc9d0cff8f4ceb42c0.tar.xz linux-de9edf7d2c816c80337a79fc9d0cff8f4ceb42c0.zip |
sh-pfc: r8a7779: use RCAR_GP_PIN() on _GP_GPIO() macro
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pfc-r8a7779.c')
-rw-r--r-- | drivers/pinctrl/sh-pfc/pfc-r8a7779.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c index e1491a5013e3..1590d6ce54be 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7779.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7779.c @@ -80,7 +80,7 @@ #define _GP_PORT_ALL(bank, pin, name, sfx) name##_##sfx #define _GP_GPIO(bank, pin, _name, sfx) \ - [(bank * 32) + pin] = { \ + [RCAR_GP_PIN(bank, pin)] = { \ .name = __stringify(_name), \ .enum_id = _name##_DATA, \ } |