pinctrl: imx8qxp: Constify imx_pinctrl_soc_info
authorFabio Estevam <festevam@gmail.com>
Tue, 13 Jul 2021 12:25:13 +0000 (09:25 -0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 30 Jul 2021 10:03:47 +0000 (12:03 +0200)
The imx_pinctrl_soc_info structure content is never changed, so it can be
declared as 'const', like it is done on all other i.MX pinctrl drivers.

Make it 'const' in this driver too.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Link: https://lore.kernel.org/r/20210713122513.3112941-2-festevam@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx8qxp.c

index 4f97813ba8b71e6da19852d254fa77a5abfade05..0a0acc0038d0b85e04bee4e4e7a43fd7a64f8121 100644 (file)
@@ -194,7 +194,7 @@ static const struct pinctrl_pin_desc imx8qxp_pinctrl_pads[] = {
        IMX_PINCTRL_PIN(IMX8QXP_COMP_CTL_GPIO_1V8_3V3_QSPI0B),
 };
 
-static struct imx_pinctrl_soc_info imx8qxp_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx8qxp_pinctrl_info = {
        .pins = imx8qxp_pinctrl_pads,
        .npins = ARRAY_SIZE(imx8qxp_pinctrl_pads),
        .flags = IMX_USE_SCU,