]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mediatek: common-v1: Use common probe function
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 22 Feb 2022 11:11:42 +0000 (12:11 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 17 Mar 2022 01:06:53 +0000 (02:06 +0100)
commit61511e26fd9a6997c102e732e76d83036e8f057c
tree9fd031255052c2ff2e5eccab7c908a9fd50b8d43
parent6943912bf4a2d66474d56bd45a1a9dc2715a92ad
pinctrl: mediatek: common-v1: Use common probe function

Most of the mediatek pinctrl drivers are calling mtk_pctrl_init() and
passing only a pointer to struct mtk_pinctrl_devdata, as the regmap
handle it passed from device-tree, with the exception of mt6397.

For all of the drivers that don't require passing a struct regmap
pointer from a parent device, simplify the probe mechanism by assigning
the required structure as match data and use mtk_pctrl_common_probe()
as their probe function.

While at it, also collapse the of_device_id entries to a single line,
as they all fit in max 83 columns, which is acceptable.

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-4-angelogioacchino.delregno@collabora.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt2701.c
drivers/pinctrl/mediatek/pinctrl-mt2712.c
drivers/pinctrl/mediatek/pinctrl-mt8127.c
drivers/pinctrl/mediatek/pinctrl-mt8135.c
drivers/pinctrl/mediatek/pinctrl-mt8167.c
drivers/pinctrl/mediatek/pinctrl-mt8365.c
drivers/pinctrl/mediatek/pinctrl-mt8516.c