Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: imx8mn: Constify imx_pinctrl_soc_info

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-1-festevam@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Fabio Estevam and committed by
Linus Walleij
ff128cdb af0ca06f

+1 -1
+1 -1
drivers/pinctrl/freescale/pinctrl-imx8mn.c
··· 317 317 IMX_PINCTRL_PIN(MX8MN_IOMUXC_UART4_TXD), 318 318 }; 319 319 320 - static struct imx_pinctrl_soc_info imx8mn_pinctrl_info = { 320 + static const struct imx_pinctrl_soc_info imx8mn_pinctrl_info = { 321 321 .pins = imx8mn_pinctrl_pads, 322 322 .npins = ARRAY_SIZE(imx8mn_pinctrl_pads), 323 323 .gpr_compatible = "fsl,imx8mn-iomuxc-gpr",