pinctrl: sh-pfc: Introduce PINCTRL_SH_FUNC_GPIO helper symbol
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 21 Jan 2019 16:05:45 +0000 (17:05 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 2 Apr 2019 07:57:50 +0000 (09:57 +0200)
commit0ace959614bc2bbea9efde24b150f6c5513f1980
treebf05cd58dee360baa42d0c131c59445adfe609bf
parent6161b39a14380815f22851c753c00acf81cfa62a
pinctrl: sh-pfc: Introduce PINCTRL_SH_FUNC_GPIO helper symbol

Pinctrl drivers for SuperH platforms use legacy function GPIOs.
Currently this support is compiled in based on the SUPERH platform
dependency, which hinders the introduction of compile-testing support
for the affected pinctrl drivers.

Introduce a new Kconfig symbol PINCTRL_SH_FUNC_GPIO, which is
auto-selected when needed.  This symbol in turn selects
PINCTRL_SH_PFC_GPIO, to reduce the number of per-driver selects.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
drivers/pinctrl/sh-pfc/Kconfig
drivers/pinctrl/sh-pfc/gpio.c
drivers/pinctrl/sh-pfc/sh_pfc.h