summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2014-10-14 13:24:25 +0000
committerandrew <andrew@FreeBSD.org>2014-10-14 13:24:25 +0000
commit046b4d46a2986d583304a2e601e7a59b100c29ac (patch)
treeaeaa4f5a0e724e42ad9797a8e5fa7e5aaeea00c7
parent04567a5ab0da41e8135944bf637c39b0efc05fbc (diff)
downloadFreeBSD-src-046b4d46a2986d583304a2e601e7a59b100c29ac.zip
FreeBSD-src-046b4d46a2986d583304a2e601e7a59b100c29ac.tar.gz
Make the ti_padstate_devmap arrays ststic, they are only used with the
file where they are defined.
-rw-r--r--sys/arm/ti/am335x/am335x_scm_padconf.c2
-rw-r--r--sys/arm/ti/omap4/omap4_scm_padconf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/ti/am335x/am335x_scm_padconf.c b/sys/arm/ti/am335x/am335x_scm_padconf.c
index 91b6856..d288efe 100644
--- a/sys/arm/ti/am335x/am335x_scm_padconf.c
+++ b/sys/arm/ti/am335x/am335x_scm_padconf.c
@@ -74,7 +74,7 @@ __FBSDID("$FreeBSD$");
#define PADCONF_INPUT_PULLDOWN (RXACTIVE)
#define PADCONF_INPUT_PULLUP_SLOW (PADCONF_INPUT_PULLUP | SLEWCTRL)
-const struct ti_scm_padstate ti_padstate_devmap[] = {
+const static struct ti_scm_padstate ti_padstate_devmap[] = {
{"output", PADCONF_OUTPUT },
{"output_pullup", PADCONF_OUTPUT_PULLUP },
{"input", PADCONF_INPUT },
diff --git a/sys/arm/ti/omap4/omap4_scm_padconf.c b/sys/arm/ti/omap4/omap4_scm_padconf.c
index 4bf7e3e..ca48023 100644
--- a/sys/arm/ti/omap4/omap4_scm_padconf.c
+++ b/sys/arm/ti/omap4/omap4_scm_padconf.c
@@ -131,7 +131,7 @@ __FBSDID("$FreeBSD$");
.muxmodes[7] = m7, \
}
-const struct ti_scm_padstate ti_padstate_devmap[] = {
+const static struct ti_scm_padstate ti_padstate_devmap[] = {
{"output", PADCONF_PIN_OUTPUT},
{"input", PADCONF_PIN_INPUT},
{"input_pullup", PADCONF_PIN_INPUT_PULLUP},
OpenPOWER on IntegriCloud