pinctrl: freescale: make mxs_regs const
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 23 Aug 2017 13:49:12 +0000 (19:19 +0530)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 31 Aug 2017 11:57:01 +0000 (13:57 +0200)
Make these const as they are only stored in the const field of a
mxs_pinctrl_soc_data structure.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/pinctrl-imx23.c
drivers/pinctrl/freescale/pinctrl-imx28.c

index 89b4f160138f63379ddcd7985d71580414f80660..c9405685971b03753adc4d177028486bed36597e 100644 (file)
@@ -257,7 +257,7 @@ static const struct pinctrl_pin_desc imx23_pins[] = {
        MXS_PINCTRL_PIN(EMI_CLKN),
 };
 
-static struct mxs_regs imx23_regs = {
+static const struct mxs_regs imx23_regs = {
        .muxsel = 0x100,
        .drive = 0x200,
        .pull = 0x400,
index 295236dfb0bc214dc3f335bf650921e8e715a9c1..87deb9ec938a7597626ed6fbf1eb9804cb17e9ac 100644 (file)
@@ -373,7 +373,7 @@ static const struct pinctrl_pin_desc imx28_pins[] = {
        MXS_PINCTRL_PIN(EMI_CKE),
 };
 
-static struct mxs_regs imx28_regs = {
+static const struct mxs_regs imx28_regs = {
        .muxsel = 0x100,
        .drive = 0x300,
        .pull = 0x600,