pinctrl: imx8dxl: Constify imx_pinctrl_soc_info
authorFabio Estevam <festevam@gmail.com>
Fri, 16 Jul 2021 13:13:41 +0000 (10:13 -0300)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 30 Jul 2021 10:06:02 +0000 (12:06 +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.

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

index 041455c..f947b1d 100644 (file)
@@ -155,7 +155,7 @@ static const struct pinctrl_pin_desc imx8dxl_pinctrl_pads[] = {
 };
 
 
-static struct imx_pinctrl_soc_info imx8dxl_pinctrl_info = {
+static const struct imx_pinctrl_soc_info imx8dxl_pinctrl_info = {
        .pins = imx8dxl_pinctrl_pads,
        .npins = ARRAY_SIZE(imx8dxl_pinctrl_pads),
        .flags = IMX_USE_SCU,