summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/tegra20-common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-10-17 13:24:45 +0000
committerTom Warren <twarren@nvidia.com>2012-11-19 08:15:35 -0700
commit95be58c988ce5d75baf47da88caeae086f9b51d0 (patch)
tree94965995c1816972fa14b8da0960a14dd912d0f3 /arch/arm/cpu/tegra20-common
parent899590816a498beb771bc85f96a019cc91bcab3d (diff)
downloadu-boot-imx-95be58c988ce5d75baf47da88caeae086f9b51d0.zip
u-boot-imx-95be58c988ce5d75baf47da88caeae086f9b51d0.tar.gz
u-boot-imx-95be58c988ce5d75baf47da88caeae086f9b51d0.tar.bz2
tegra: Use const for pinmux_config_pingroup/table()
These two functions don't actually modify their arguments so add a const keyword. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Tom Warren <twarren@nvidia.com>
Diffstat (limited to 'arch/arm/cpu/tegra20-common')
-rw-r--r--arch/arm/cpu/tegra20-common/pinmux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/tegra20-common/pinmux.c b/arch/arm/cpu/tegra20-common/pinmux.c
index 08b8305..a2a0916 100644
--- a/arch/arm/cpu/tegra20-common/pinmux.c
+++ b/arch/arm/cpu/tegra20-common/pinmux.c
@@ -554,7 +554,7 @@ void pinmux_set_func(enum pmux_pingrp pin, enum pmux_func func)
writel(reg, muxctl);
}
-void pinmux_config_pingroup(struct pingroup_config *config)
+void pinmux_config_pingroup(const struct pingroup_config *config)
{
enum pmux_pingrp pin = config->pingroup;
@@ -563,7 +563,7 @@ void pinmux_config_pingroup(struct pingroup_config *config)
pinmux_set_tristate(pin, config->tristate);
}
-void pinmux_config_table(struct pingroup_config *config, int len)
+void pinmux_config_table(const struct pingroup_config *config, int len)
{
int i;