Skip to content

Commit

Permalink
pinctrl: imx8qxp: Constify imx_pinctrl_soc_info
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Dong Aisheng <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
fabioestevam authored and linusw committed Jul 30, 2021
1 parent ff128cd commit b013dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/freescale/pinctrl-imx8qxp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b013dc8

Please sign in to comment.