summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
diff options
context:
space:
mode:
authorLaurent Pinchart2013-12-16 20:25:17 +0100
committerLinus Walleij2013-12-20 12:28:40 +0100
commit44a45b55a72754e5c9ed047179fb269b530f45fc (patch)
tree6d9d0b31157daa02597ff8f7bdc3d7429096f5b7 /drivers/pinctrl/sh-pfc/pfc-r8a7791.c
parentpinctrl: sh-pfc: sh: Constify pins and cfg_regs arrays (diff)
downloadkernel-qcow2-linux-44a45b55a72754e5c9ed047179fb269b530f45fc.tar.gz
kernel-qcow2-linux-44a45b55a72754e5c9ed047179fb269b530f45fc.tar.xz
kernel-qcow2-linux-44a45b55a72754e5c9ed047179fb269b530f45fc.zip
pinctrl: sh-pfc: ARM: 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/sh-pfc/pfc-r8a7791.c')
-rw-r--r--drivers/pinctrl/sh-pfc/pfc-r8a7791.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
index ea02d37bab7c..d73a5f312777 100644
--- a/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
+++ b/drivers/pinctrl/sh-pfc/pfc-r8a7791.c
@@ -1674,7 +1674,7 @@ static const u16 pinmux_data[] = {
PINMUX_IPSR_MODSEL_DATA(IP16_11_10, CAN1_RX_B, SEL_CAN1_1),
};
-static struct sh_pfc_pin pinmux_pins[] = {
+static const struct sh_pfc_pin pinmux_pins[] = {
PINMUX_GPIO_GP_ALL(),
};
@@ -3056,7 +3056,7 @@ static const struct sh_pfc_function pinmux_functions[] = {
SH_PFC_FUNCTION(usb1),
};
-static struct pinmux_cfg_reg pinmux_config_regs[] = {
+static const struct pinmux_cfg_reg pinmux_config_regs[] = {
{ PINMUX_CFG_REG("GPSR0", 0xE6060004, 32, 1) {
GP_0_31_FN, FN_IP1_22_20,
GP_0_30_FN, FN_IP1_19_17,