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>
This commit is contained in:
parent
6d5bddd525
commit
f41a1efe63
|
@ -702,7 +702,7 @@ static const u16 pinmux_data[] = {
|
||||||
PINMUX_DATA(SSCK0_PF_MARK, PF0MD_11),
|
PINMUX_DATA(SSCK0_PF_MARK, PF0MD_11),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct sh_pfc_pin pinmux_pins[] = {
|
static const struct sh_pfc_pin pinmux_pins[] = {
|
||||||
/* PA */
|
/* PA */
|
||||||
PINMUX_GPIO(PA7),
|
PINMUX_GPIO(PA7),
|
||||||
PINMUX_GPIO(PA6),
|
PINMUX_GPIO(PA6),
|
||||||
|
|
|
@ -1071,7 +1071,7 @@ static const u16 pinmux_data[] = {
|
||||||
PINMUX_DATA(SD_D2_MARK, PK0MD_10),
|
PINMUX_DATA(SD_D2_MARK, PK0MD_10),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct sh_pfc_pin pinmux_pins[] = {
|
static const struct sh_pfc_pin pinmux_pins[] = {
|
||||||
/* Port A */
|
/* Port A */
|
||||||
PINMUX_GPIO(PA3),
|
PINMUX_GPIO(PA3),
|
||||||
PINMUX_GPIO(PA2),
|
PINMUX_GPIO(PA2),
|
||||||
|
|
|
@ -1451,7 +1451,7 @@ static const u16 pinmux_data[] = {
|
||||||
PINMUX_DATA(PWM1A_MARK, PJ0MD_100),
|
PINMUX_DATA(PWM1A_MARK, PJ0MD_100),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct sh_pfc_pin pinmux_pins[] = {
|
static const struct sh_pfc_pin pinmux_pins[] = {
|
||||||
/* Port A */
|
/* Port A */
|
||||||
PINMUX_GPIO(PA1),
|
PINMUX_GPIO(PA1),
|
||||||
PINMUX_GPIO(PA0),
|
PINMUX_GPIO(PA0),
|
||||||
|
|
|
@ -576,7 +576,7 @@ static const u16 pinmux_data[] = {
|
||||||
PINMUX_DATA(SIM_CLK_MARK, PSELD_1_0_10, PTV0_FN),
|
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 */
|
/* PTA */
|
||||||
PINMUX_GPIO(PTA7),
|
PINMUX_GPIO(PTA7),
|
||||||
PINMUX_GPIO(PTA6),
|
PINMUX_GPIO(PTA6),
|
||||||
|
|
|
@ -754,7 +754,7 @@ static const u16 pinmux_data[] = {
|
||||||
PINMUX_DATA(KEYOUT5_IN5_MARK, HIZA14_KEYSC, KEYOUT5_IN5),
|
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 */
|
/* PTA */
|
||||||
PINMUX_GPIO(PTA7),
|
PINMUX_GPIO(PTA7),
|
||||||
PINMUX_GPIO(PTA6),
|
PINMUX_GPIO(PTA6),
|
||||||
|
|
|
@ -917,7 +917,7 @@ static const u16 pinmux_data[] = {
|
||||||
PINMUX_DATA(SIUBISLD_MARK, PSD1_PSD0_FN2, PTZ0_FN),
|
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 */
|
/* PTA */
|
||||||
PINMUX_GPIO(PTA7),
|
PINMUX_GPIO(PTA7),
|
||||||
PINMUX_GPIO(PTA6),
|
PINMUX_GPIO(PTA6),
|
||||||
|
|
|
@ -1146,7 +1146,7 @@ static const u16 pinmux_data[] = {
|
||||||
PINMUX_DATA(SCIF3_I_TXD_MARK, PSB14_1, PTZ3_FN),
|
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 */
|
/* PTA */
|
||||||
PINMUX_GPIO(PTA7),
|
PINMUX_GPIO(PTA7),
|
||||||
PINMUX_GPIO(PTA6),
|
PINMUX_GPIO(PTA6),
|
||||||
|
|
|
@ -1357,7 +1357,7 @@ static const u16 pinmux_data[] = {
|
||||||
PINMUX_IPSR_DATA(IP11_28, ST_CLKOUT),
|
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(),
|
PINMUX_GPIO_GP_ALL(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1074,7 +1074,7 @@ static const u16 pinmux_data[] = {
|
||||||
PINMUX_DATA(ON_DQ0_MARK, PS8_8_FN2, PTZ0_FN),
|
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 */
|
/* PTA */
|
||||||
PINMUX_GPIO(PTA7),
|
PINMUX_GPIO(PTA7),
|
||||||
PINMUX_GPIO(PTA6),
|
PINMUX_GPIO(PTA6),
|
||||||
|
|
|
@ -671,7 +671,7 @@ static const u16 pinmux_data[] = {
|
||||||
PINMUX_DATA(IRQOUT_MARK, P2MSEL2_1),
|
PINMUX_DATA(IRQOUT_MARK, P2MSEL2_1),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct sh_pfc_pin pinmux_pins[] = {
|
static const struct sh_pfc_pin pinmux_pins[] = {
|
||||||
/* PA */
|
/* PA */
|
||||||
PINMUX_GPIO(PA7),
|
PINMUX_GPIO(PA7),
|
||||||
PINMUX_GPIO(PA6),
|
PINMUX_GPIO(PA6),
|
||||||
|
|
|
@ -407,7 +407,7 @@ static const u16 pinmux_data[] = {
|
||||||
PINMUX_DATA(SSI3_SCK_MARK, P2MSEL6_1, P2MSEL5_1, PJ1_FN),
|
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 */
|
/* PA */
|
||||||
PINMUX_GPIO(PA7),
|
PINMUX_GPIO(PA7),
|
||||||
PINMUX_GPIO(PA6),
|
PINMUX_GPIO(PA6),
|
||||||
|
|
|
@ -285,7 +285,7 @@ static const u16 pinmux_data[] = {
|
||||||
PINMUX_DATA(IRQOUT_MARK, PH0_FN),
|
PINMUX_DATA(IRQOUT_MARK, PH0_FN),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct sh_pfc_pin pinmux_pins[] = {
|
static const struct sh_pfc_pin pinmux_pins[] = {
|
||||||
/* PA */
|
/* PA */
|
||||||
PINMUX_GPIO(PA7),
|
PINMUX_GPIO(PA7),
|
||||||
PINMUX_GPIO(PA6),
|
PINMUX_GPIO(PA6),
|
||||||
|
|
Loading…
Reference in a new issue