Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Oct 2014 13:24:26 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273086 - in head/sys/arm/ti: am335x omap4
Message-ID:  <201410141324.s9EDOQ0Z033045@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Tue Oct 14 13:24:25 2014
New Revision: 273086
URL: https://svnweb.freebsd.org/changeset/base/273086

Log:
  Make the ti_padstate_devmap arrays ststic, they are only used with the
  file where they are defined.

Modified:
  head/sys/arm/ti/am335x/am335x_scm_padconf.c
  head/sys/arm/ti/omap4/omap4_scm_padconf.c

Modified: head/sys/arm/ti/am335x/am335x_scm_padconf.c
==============================================================================
--- head/sys/arm/ti/am335x/am335x_scm_padconf.c	Tue Oct 14 13:06:13 2014	(r273085)
+++ head/sys/arm/ti/am335x/am335x_scm_padconf.c	Tue Oct 14 13:24:25 2014	(r273086)
@@ -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 },

Modified: head/sys/arm/ti/omap4/omap4_scm_padconf.c
==============================================================================
--- head/sys/arm/ti/omap4/omap4_scm_padconf.c	Tue Oct 14 13:06:13 2014	(r273085)
+++ head/sys/arm/ti/omap4/omap4_scm_padconf.c	Tue Oct 14 13:24:25 2014	(r273086)
@@ -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},



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410141324.s9EDOQ0Z033045>