pinctrl: sh-pfc: sh: Constify pins and cfg_regs arrays
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 16 Dec 2013 19:25:16 +0000 (20:25 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Dec 2013 11:27:43 +0000 (12:27 +0100)
The arrays are never modified, declare them as const.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
12 files changed:
drivers/pinctrl/sh-pfc/pfc-sh7203.c
drivers/pinctrl/sh-pfc/pfc-sh7264.c
drivers/pinctrl/sh-pfc/pfc-sh7269.c
drivers/pinctrl/sh-pfc/pfc-sh7720.c
drivers/pinctrl/sh-pfc/pfc-sh7722.c
drivers/pinctrl/sh-pfc/pfc-sh7723.c
drivers/pinctrl/sh-pfc/pfc-sh7724.c
drivers/pinctrl/sh-pfc/pfc-sh7734.c
drivers/pinctrl/sh-pfc/pfc-sh7757.c
drivers/pinctrl/sh-pfc/pfc-sh7785.c
drivers/pinctrl/sh-pfc/pfc-sh7786.c
drivers/pinctrl/sh-pfc/pfc-shx3.c

index bf3d8f28768d2ce56f0069c802c8478106e293e7..3bda7bafd0ab5a55ff81c20d1183d72934bda8d6 100644 (file)
@@ -702,7 +702,7 @@ static const u16 pinmux_data[] = {
        PINMUX_DATA(SSCK0_PF_MARK, PF0MD_11),
 };
 
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
        /* PA */
        PINMUX_GPIO(PA7),
        PINMUX_GPIO(PA6),
index 673a59503223aa1ed4d18253c3f6c98c5085a6d8..e1cb6dc0502851734828e7edf3acb01106474891 100644 (file)
@@ -1071,7 +1071,7 @@ static const u16 pinmux_data[] = {
        PINMUX_DATA(SD_D2_MARK, PK0MD_10),
 };
 
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
        /* Port A */
        PINMUX_GPIO(PA3),
        PINMUX_GPIO(PA2),
index a19b60f72b234c38d569d2bcc3f34123b3e5afa5..7a11320ad96d391adcb02b6c17d942241ecc2c37 100644 (file)
@@ -1451,7 +1451,7 @@ static const u16 pinmux_data[] = {
        PINMUX_DATA(PWM1A_MARK, PJ0MD_100),
 };
 
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
        /* Port A */
        PINMUX_GPIO(PA1),
        PINMUX_GPIO(PA0),
index 7a26809eda15fc4683673eb92dac4ed0a519cd09..13d05f88bc01c78db572a70924a821f376245931 100644 (file)
@@ -576,7 +576,7 @@ static const u16 pinmux_data[] = {
        PINMUX_DATA(SIM_CLK_MARK, PSELD_1_0_10, PTV0_FN),
 };
 
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
        /* PTA */
        PINMUX_GPIO(PTA7),
        PINMUX_GPIO(PTA6),
index add309347b05ce1fa57010b902f59141775736c7..914d872c37a40a2198ea5a26c7e875771e19814d 100644 (file)
@@ -754,7 +754,7 @@ static const u16 pinmux_data[] = {
        PINMUX_DATA(KEYOUT5_IN5_MARK, HIZA14_KEYSC, KEYOUT5_IN5),
 };
 
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
        /* PTA */
        PINMUX_GPIO(PTA7),
        PINMUX_GPIO(PTA6),
index 1cecc9101a52ec2155abdce8e221d1c555adaa7f..4eb7eae2e6d0406573c325b254b0aefdaa77f067 100644 (file)
@@ -917,7 +917,7 @@ static const u16 pinmux_data[] = {
        PINMUX_DATA(SIUBISLD_MARK, PSD1_PSD0_FN2, PTZ0_FN),
 };
 
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
        /* PTA */
        PINMUX_GPIO(PTA7),
        PINMUX_GPIO(PTA6),
index 1085ab556b8e70ce4a4d1b1f2cc0ed3c5c256693..74a1a7f1317c7ce097c24abcb85da143a6097f09 100644 (file)
@@ -1146,7 +1146,7 @@ static const u16 pinmux_data[] = {
        PINMUX_DATA(SCIF3_I_TXD_MARK,   PSB14_1, PTZ3_FN),
 };
 
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
        /* PTA */
        PINMUX_GPIO(PTA7),
        PINMUX_GPIO(PTA6),
index ec0c47c4f1009d17140fbfc92ab9c48b03797419..e53dd1cb1625d6105f04ef38848c8d6d3f06a65d 100644 (file)
@@ -1357,7 +1357,7 @@ static const u16 pinmux_data[] = {
        PINMUX_IPSR_DATA(IP11_28, ST_CLKOUT),
 };
 
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
        PINMUX_GPIO_GP_ALL(),
 };
 
index 33d75e5109118122be89d3055563121ae7027ccb..625661a88c52703931e6c574dde016f379886a70 100644 (file)
@@ -1074,7 +1074,7 @@ static const u16 pinmux_data[] = {
        PINMUX_DATA(ON_DQ0_MARK, PS8_8_FN2, PTZ0_FN),
 };
 
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
        /* PTA */
        PINMUX_GPIO(PTA7),
        PINMUX_GPIO(PTA6),
index 517eb49d76bd86572a50925b5d040017e5d2cf29..b38dd7e3e375806c8cba0e3e809758fe0bd534de 100644 (file)
@@ -671,7 +671,7 @@ static const u16 pinmux_data[] = {
        PINMUX_DATA(IRQOUT_MARK, P2MSEL2_1),
 };
 
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
        /* PA */
        PINMUX_GPIO(PA7),
        PINMUX_GPIO(PA6),
index 623345fac936fdec72a6a0c0d97d9e8dbe8aa2e0..6cb4e0aaf20b0217598b884eeececa57f58f80f5 100644 (file)
@@ -407,7 +407,7 @@ static const u16 pinmux_data[] = {
        PINMUX_DATA(SSI3_SCK_MARK,      P2MSEL6_1, P2MSEL5_1, PJ1_FN),
 };
 
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
        /* PA */
        PINMUX_GPIO(PA7),
        PINMUX_GPIO(PA6),
index 55262bd869edff3805555e63926fc4af8d219ca0..a3fcb2284d91117437eb1afc3fc6189f078bd3b7 100644 (file)
@@ -285,7 +285,7 @@ static const u16 pinmux_data[] = {
        PINMUX_DATA(IRQOUT_MARK,        PH0_FN),
 };
 
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
        /* PA */
        PINMUX_GPIO(PA7),
        PINMUX_GPIO(PA6),