Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: sh-pfc: Add PORT_GP_24 helper macro

This follows the style of existing PORT_GP_X macros and
will be used by a follow-up patch for the r8a7791 SoC.

Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

authored by

Simon Horman and committed by
Geert Uytterhoeven
9a6caa13 c5901bdc

+6 -2
+6 -2
drivers/pinctrl/sh-pfc/sh_pfc.h
··· 422 422 PORT_GP_CFG_1(bank, 22, fn, sfx, cfg) 423 423 #define PORT_GP_23(bank, fn, sfx) PORT_GP_CFG_23(bank, fn, sfx, 0) 424 424 425 - #define PORT_GP_CFG_26(bank, fn, sfx, cfg) \ 425 + #define PORT_GP_CFG_24(bank, fn, sfx, cfg) \ 426 426 PORT_GP_CFG_23(bank, fn, sfx, cfg), \ 427 - PORT_GP_CFG_1(bank, 23, fn, sfx, cfg), \ 427 + PORT_GP_CFG_1(bank, 23, fn, sfx, cfg) 428 + #define PORT_GP_24(bank, fn, sfx) PORT_GP_CFG_24(bank, fn, sfx, 0) 429 + 430 + #define PORT_GP_CFG_26(bank, fn, sfx, cfg) \ 431 + PORT_GP_CFG_24(bank, fn, sfx, cfg), \ 428 432 PORT_GP_CFG_1(bank, 24, fn, sfx, cfg), \ 429 433 PORT_GP_CFG_1(bank, 25, fn, sfx, cfg) 430 434 #define PORT_GP_26(bank, fn, sfx) PORT_GP_CFG_26(bank, fn, sfx, 0)