aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-12-16 14:25:16 -0500
committerLinus Walleij <linus.walleij@linaro.org>2013-12-20 06:27:43 -0500
commitf41a1efe63c6fc101b9c5b478c9dc22a43312b21 (patch)
tree79c3a1737ca80da55d3b56b821026a4bc2933fcc /drivers/pinctrl
parent6d5bddd5258c11f58cc6a6d17cd97ce5ad39a270 (diff)
pinctrl: sh-pfc: sh: Constify pins and cfg_regs arrays
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-sh7203.c2
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-sh7264.c2
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-sh7269.c2
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-sh7720.c2
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-sh7722.c2
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-sh7723.c2
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-sh7724.c2
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-sh7734.c2
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-sh7757.c2
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-sh7785.c2
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-sh7786.c2
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-shx3.c2
12 files changed, 12 insertions, 12 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7203.c b/drivers/pinctrl/sh-pfc/pfc-sh7203.c
index bf3d8f28768d..3bda7bafd0ab 100644
--- a/drivers/pinctrl/sh-pfc/pfc-sh7203.c
+++ b/drivers/pinctrl/sh-pfc/pfc-sh7203.c
@@ -702,7 +702,7 @@ static const u16 pinmux_data[] = {
702 PINMUX_DATA(SSCK0_PF_MARK, PF0MD_11), 702 PINMUX_DATA(SSCK0_PF_MARK, PF0MD_11),
703}; 703};
704 704
705static struct sh_pfc_pin pinmux_pins[] = { 705static const struct sh_pfc_pin pinmux_pins[] = {
706 /* PA */ 706 /* PA */
707 PINMUX_GPIO(PA7), 707 PINMUX_GPIO(PA7),
708 PINMUX_GPIO(PA6), 708 PINMUX_GPIO(PA6),
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7264.c b/drivers/pinctrl/sh-pfc/pfc-sh7264.c
index 673a59503223..e1cb6dc05028 100644
--- a/drivers/pinctrl/sh-pfc/pfc-sh7264.c
+++ b/drivers/pinctrl/sh-pfc/pfc-sh7264.c
@@ -1071,7 +1071,7 @@ static const u16 pinmux_data[] = {
1071 PINMUX_DATA(SD_D2_MARK, PK0MD_10), 1071 PINMUX_DATA(SD_D2_MARK, PK0MD_10),
1072}; 1072};
1073 1073
1074static struct sh_pfc_pin pinmux_pins[] = { 1074static const struct sh_pfc_pin pinmux_pins[] = {
1075 /* Port A */ 1075 /* Port A */
1076 PINMUX_GPIO(PA3), 1076 PINMUX_GPIO(PA3),
1077 PINMUX_GPIO(PA2), 1077 PINMUX_GPIO(PA2),
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7269.c b/drivers/pinctrl/sh-pfc/pfc-sh7269.c
index a19b60f72b23..7a11320ad96d 100644
--- a/drivers/pinctrl/sh-pfc/pfc-sh7269.c
+++ b/drivers/pinctrl/sh-pfc/pfc-sh7269.c
@@ -1451,7 +1451,7 @@ static const u16 pinmux_data[] = {
1451 PINMUX_DATA(PWM1A_MARK, PJ0MD_100), 1451 PINMUX_DATA(PWM1A_MARK, PJ0MD_100),
1452}; 1452};
1453 1453
1454static struct sh_pfc_pin pinmux_pins[] = { 1454static const struct sh_pfc_pin pinmux_pins[] = {
1455 /* Port A */ 1455 /* Port A */
1456 PINMUX_GPIO(PA1), 1456 PINMUX_GPIO(PA1),
1457 PINMUX_GPIO(PA0), 1457 PINMUX_GPIO(PA0),
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7720.c b/drivers/pinctrl/sh-pfc/pfc-sh7720.c
index 7a26809eda15..13d05f88bc01 100644
--- a/drivers/pinctrl/sh-pfc/pfc-sh7720.c
+++ b/drivers/pinctrl/sh-pfc/pfc-sh7720.c
@@ -576,7 +576,7 @@ static const u16 pinmux_data[] = {
576 PINMUX_DATA(SIM_CLK_MARK, PSELD_1_0_10, PTV0_FN), 576 PINMUX_DATA(SIM_CLK_MARK, PSELD_1_0_10, PTV0_FN),
577}; 577};
578 578
579static struct sh_pfc_pin pinmux_pins[] = { 579static const struct sh_pfc_pin pinmux_pins[] = {
580 /* PTA */ 580 /* PTA */
581 PINMUX_GPIO(PTA7), 581 PINMUX_GPIO(PTA7),
582 PINMUX_GPIO(PTA6), 582 PINMUX_GPIO(PTA6),
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7722.c b/drivers/pinctrl/sh-pfc/pfc-sh7722.c
index add309347b05..914d872c37a4 100644
--- a/drivers/pinctrl/sh-pfc/pfc-sh7722.c
+++ b/drivers/pinctrl/sh-pfc/pfc-sh7722.c
@@ -754,7 +754,7 @@ static const u16 pinmux_data[] = {
754 PINMUX_DATA(KEYOUT5_IN5_MARK, HIZA14_KEYSC, KEYOUT5_IN5), 754 PINMUX_DATA(KEYOUT5_IN5_MARK, HIZA14_KEYSC, KEYOUT5_IN5),
755}; 755};
756 756
757static struct sh_pfc_pin pinmux_pins[] = { 757static const struct sh_pfc_pin pinmux_pins[] = {
758 /* PTA */ 758 /* PTA */
759 PINMUX_GPIO(PTA7), 759 PINMUX_GPIO(PTA7),
760 PINMUX_GPIO(PTA6), 760 PINMUX_GPIO(PTA6),
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7723.c b/drivers/pinctrl/sh-pfc/pfc-sh7723.c
index 1cecc9101a52..4eb7eae2e6d0 100644
--- a/drivers/pinctrl/sh-pfc/pfc-sh7723.c
+++ b/drivers/pinctrl/sh-pfc/pfc-sh7723.c
@@ -917,7 +917,7 @@ static const u16 pinmux_data[] = {
917 PINMUX_DATA(SIUBISLD_MARK, PSD1_PSD0_FN2, PTZ0_FN), 917 PINMUX_DATA(SIUBISLD_MARK, PSD1_PSD0_FN2, PTZ0_FN),
918}; 918};
919 919
920static struct sh_pfc_pin pinmux_pins[] = { 920static const struct sh_pfc_pin pinmux_pins[] = {
921 /* PTA */ 921 /* PTA */
922 PINMUX_GPIO(PTA7), 922 PINMUX_GPIO(PTA7),
923 PINMUX_GPIO(PTA6), 923 PINMUX_GPIO(PTA6),
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7724.c b/drivers/pinctrl/sh-pfc/pfc-sh7724.c
index 1085ab556b8e..74a1a7f1317c 100644
--- a/drivers/pinctrl/sh-pfc/pfc-sh7724.c
+++ b/drivers/pinctrl/sh-pfc/pfc-sh7724.c
@@ -1146,7 +1146,7 @@ static const u16 pinmux_data[] = {
1146 PINMUX_DATA(SCIF3_I_TXD_MARK, PSB14_1, PTZ3_FN), 1146 PINMUX_DATA(SCIF3_I_TXD_MARK, PSB14_1, PTZ3_FN),
1147}; 1147};
1148 1148
1149static struct sh_pfc_pin pinmux_pins[] = { 1149static const struct sh_pfc_pin pinmux_pins[] = {
1150 /* PTA */ 1150 /* PTA */
1151 PINMUX_GPIO(PTA7), 1151 PINMUX_GPIO(PTA7),
1152 PINMUX_GPIO(PTA6), 1152 PINMUX_GPIO(PTA6),
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7734.c b/drivers/pinctrl/sh-pfc/pfc-sh7734.c
index ec0c47c4f100..e53dd1cb1625 100644
--- a/drivers/pinctrl/sh-pfc/pfc-sh7734.c
+++ b/drivers/pinctrl/sh-pfc/pfc-sh7734.c
@@ -1357,7 +1357,7 @@ static const u16 pinmux_data[] = {
1357 PINMUX_IPSR_DATA(IP11_28, ST_CLKOUT), 1357 PINMUX_IPSR_DATA(IP11_28, ST_CLKOUT),
1358}; 1358};
1359 1359
1360static struct sh_pfc_pin pinmux_pins[] = { 1360static const struct sh_pfc_pin pinmux_pins[] = {
1361 PINMUX_GPIO_GP_ALL(), 1361 PINMUX_GPIO_GP_ALL(),
1362}; 1362};
1363 1363
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7757.c b/drivers/pinctrl/sh-pfc/pfc-sh7757.c
index 33d75e510911..625661a88c52 100644
--- a/drivers/pinctrl/sh-pfc/pfc-sh7757.c
+++ b/drivers/pinctrl/sh-pfc/pfc-sh7757.c
@@ -1074,7 +1074,7 @@ static const u16 pinmux_data[] = {
1074 PINMUX_DATA(ON_DQ0_MARK, PS8_8_FN2, PTZ0_FN), 1074 PINMUX_DATA(ON_DQ0_MARK, PS8_8_FN2, PTZ0_FN),
1075}; 1075};
1076 1076
1077static struct sh_pfc_pin pinmux_pins[] = { 1077static const struct sh_pfc_pin pinmux_pins[] = {
1078 /* PTA */ 1078 /* PTA */
1079 PINMUX_GPIO(PTA7), 1079 PINMUX_GPIO(PTA7),
1080 PINMUX_GPIO(PTA6), 1080 PINMUX_GPIO(PTA6),
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7785.c b/drivers/pinctrl/sh-pfc/pfc-sh7785.c
index 517eb49d76bd..b38dd7e3e375 100644
--- a/drivers/pinctrl/sh-pfc/pfc-sh7785.c
+++ b/drivers/pinctrl/sh-pfc/pfc-sh7785.c
@@ -671,7 +671,7 @@ static const u16 pinmux_data[] = {
671 PINMUX_DATA(IRQOUT_MARK, P2MSEL2_1), 671 PINMUX_DATA(IRQOUT_MARK, P2MSEL2_1),
672}; 672};
673 673
674static struct sh_pfc_pin pinmux_pins[] = { 674static const struct sh_pfc_pin pinmux_pins[] = {
675 /* PA */ 675 /* PA */
676 PINMUX_GPIO(PA7), 676 PINMUX_GPIO(PA7),
677 PINMUX_GPIO(PA6), 677 PINMUX_GPIO(PA6),
diff --git a/drivers/pinctrl/sh-pfc/pfc-sh7786.c b/drivers/pinctrl/sh-pfc/pfc-sh7786.c
index 623345fac936..6cb4e0aaf20b 100644
--- a/drivers/pinctrl/sh-pfc/pfc-sh7786.c
+++ b/drivers/pinctrl/sh-pfc/pfc-sh7786.c
@@ -407,7 +407,7 @@ static const u16 pinmux_data[] = {
407 PINMUX_DATA(SSI3_SCK_MARK, P2MSEL6_1, P2MSEL5_1, PJ1_FN), 407 PINMUX_DATA(SSI3_SCK_MARK, P2MSEL6_1, P2MSEL5_1, PJ1_FN),
408}; 408};
409 409
410static struct sh_pfc_pin pinmux_pins[] = { 410static const struct sh_pfc_pin pinmux_pins[] = {
411 /* PA */ 411 /* PA */
412 PINMUX_GPIO(PA7), 412 PINMUX_GPIO(PA7),
413 PINMUX_GPIO(PA6), 413 PINMUX_GPIO(PA6),
diff --git a/drivers/pinctrl/sh-pfc/pfc-shx3.c b/drivers/pinctrl/sh-pfc/pfc-shx3.c
index 55262bd869ed..a3fcb2284d91 100644
--- a/drivers/pinctrl/sh-pfc/pfc-shx3.c
+++ b/drivers/pinctrl/sh-pfc/pfc-shx3.c
@@ -285,7 +285,7 @@ static const u16 pinmux_data[] = {
285 PINMUX_DATA(IRQOUT_MARK, PH0_FN), 285 PINMUX_DATA(IRQOUT_MARK, PH0_FN),
286}; 286};
287 287
288static struct sh_pfc_pin pinmux_pins[] = { 288static const struct sh_pfc_pin pinmux_pins[] = {
289 /* PA */ 289 /* PA */
290 PINMUX_GPIO(PA7), 290 PINMUX_GPIO(PA7),
291 PINMUX_GPIO(PA6), 291 PINMUX_GPIO(PA6),