pinctrl: freescale: make mxs_regs const
Subsystems (4)
PATCH 1/1 pinctrl: freescale: make mxs_regs const
Make these const as they are only stored in the const field of a mxs_pinctrl_soc_data structure.
Signed-off-by Bhumika Goyal <[email protected]>
--- drivers/pinctrl/freescale/pinctrl-imx23.c | 2 +- drivers/pinctrl/freescale/pinctrl-imx28.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/freescale/pinctrl-imx23.c +1 -1
@@ -257,7 +257,7 @@ enum imx23_pin_enum { MXS_PINCTRL_PIN(EMI_CLKN), }; -static struct mxs_regs imx23_regs = { +static const struct mxs_regs imx23_regs = { .muxsel =0x100 , .drive =0x200 , .pull =0x400 ,
drivers/pinctrl/freescale/pinctrl-imx28.c +1 -1
@@ -373,7 +373,7 @@ enum imx28_pin_enum { MXS_PINCTRL_PIN(EMI_CKE), }; -static struct mxs_regs imx28_regs = { +static const struct mxs_regs imx28_regs = { .muxsel =0x100 , .drive =0x300 , .pull =0x600 ,
Signature · 1 line
1.9.1
Quoted 4 lines · Bhumika Goyal
Make these const as they are only stored in the const field of a
mxs_pinctrl_soc_datastructure.Signed-off-by Bhumika Goyal <[email protected]>
Patch applied.
Yours,
Linus Walleij