summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/freescale/pinctrl-imx8dxl.c
diff options
context:
space:
mode:
authorAnson Huang <Anson.Huang@nxp.com>2020-09-08 11:11:59 +0300
committerLinus Walleij <linus.walleij@linaro.org>2020-09-29 14:44:36 +0300
commit07ae3f0784c14c3ae8e20ed11c62139f45a8ac7b (patch)
treeb2bc059160fa213ad19b5406306e7e535179c151 /drivers/pinctrl/freescale/pinctrl-imx8dxl.c
parent82d70627e94a04a8de0df5b9f417da3841effbd2 (diff)
downloadlinux-07ae3f0784c14c3ae8e20ed11c62139f45a8ac7b.tar.xz
pinctrl: imx: Use function callbacks for SCU related functions
Use function callbacks for SCU related functions in pinctrl-imx.c in order to support the scenario of PINCTRL_IMX is built in while PINCTRL_IMX_SCU is built as module, all drivers using SCU pinctrl driver need to initialize the SCU related function callback, and no need to check CONFIG_PINCTRL_IMX_SCU anymore, hence stub functions also can be removed. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com> Link: https://lore.kernel.org/r/1599552721-24872-1-git-send-email-Anson.Huang@nxp.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/freescale/pinctrl-imx8dxl.c')
-rw-r--r--drivers/pinctrl/freescale/pinctrl-imx8dxl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pinctrl/freescale/pinctrl-imx8dxl.c b/drivers/pinctrl/freescale/pinctrl-imx8dxl.c
index 12b97daa0407..d3020c0cd55d 100644
--- a/drivers/pinctrl/freescale/pinctrl-imx8dxl.c
+++ b/drivers/pinctrl/freescale/pinctrl-imx8dxl.c
@@ -159,6 +159,9 @@ static struct imx_pinctrl_soc_info imx8dxl_pinctrl_info = {
.pins = imx8dxl_pinctrl_pads,
.npins = ARRAY_SIZE(imx8dxl_pinctrl_pads),
.flags = IMX_USE_SCU,
+ .imx_pinconf_get = imx_pinconf_get_scu,
+ .imx_pinconf_set = imx_pinconf_set_scu,
+ .imx_pinctrl_parse_pin = imx_pinctrl_parse_pin_scu,
};
static const struct of_device_id imx8dxl_pinctrl_of_match[] = {