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

pinctrl: imx8dxl: 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.

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>

authored by

Fabio Estevam and committed by
Linus Walleij
2fefcf24 b013dc8a

+1 -1
+1 -1
drivers/pinctrl/freescale/pinctrl-imx8dxl.c
··· 155 155 }; 156 156 157 157 158 - static struct imx_pinctrl_soc_info imx8dxl_pinctrl_info = { 158 + static const struct imx_pinctrl_soc_info imx8dxl_pinctrl_info = { 159 159 .pins = imx8dxl_pinctrl_pads, 160 160 .npins = ARRAY_SIZE(imx8dxl_pinctrl_pads), 161 161 .flags = IMX_USE_SCU,