Commit 2fefcf24 authored by Fabio Estevam's avatar Fabio Estevam Committed by Linus Walleij

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: default avatarDong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20210716131341.3370620-1-festevam@gmail.comSigned-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent b013dc8a
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment