pinctrl: mediatek: paris: Unify probe function by using OF match data
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 22 Feb 2022 11:11:40 +0000 (12:11 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Mar 2022 01:06:52 +0000 (02:06 +0100)
commit78df7bba4ab88dd6f663335858b92f9cfa2cb850
treeb85ea05e4ee8aa638c956e9a08f71c5407aff838
parent89388f8730699c259f8090ec435fb43569efe4ac
pinctrl: mediatek: paris: Unify probe function by using OF match data

All of the SoCs using Paris pinctrl are defining a custom probe
function that is simply calling mtk_paris_pinctrl_probe() passing
a pointer to the SoC specific mtk_pin_soc structure and nothing else.

Simplify the probe mechanism across all pinctrl drivers that are
using pinctrl-paris by passing the specific mtk_pin_soc as match
data and using function mtk_paris_pinctrl_probe as a common probe
function for all of them.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20220222111144.20796-2-angelogioacchino.delregno@collabora.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt6765.c
drivers/pinctrl/mediatek/pinctrl-mt6779.c
drivers/pinctrl/mediatek/pinctrl-mt6797.c
drivers/pinctrl/mediatek/pinctrl-mt8183.c
drivers/pinctrl/mediatek/pinctrl-mt8192.c
drivers/pinctrl/mediatek/pinctrl-mt8195.c
drivers/pinctrl/mediatek/pinctrl-paris.c
drivers/pinctrl/mediatek/pinctrl-paris.h