]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sh-pfc: r8a7779: use RCAR_GP_PIN() on _GP_GPIO() macro
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 9 Apr 2013 04:54:18 +0000 (04:54 +0000)
committerSimon Horman <horms+renesas@verge.net.au>
Sat, 25 May 2013 02:24:59 +0000 (11:24 +0900)
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>
drivers/pinctrl/sh-pfc/pfc-r8a7779.c

index 8ae52fe698742df53f7b33bc2db3671958f1d950..98dbcb43f08a84513d89c19d5e094036e7affa64 100644 (file)
@@ -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,                                \
        }