summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@arm.com>2016-10-25 22:40:46 +0100
committerAnas Nashif <nashif@linux.intel.com>2016-10-26 20:51:06 +0000
commitc8d6ff0474ff56081bd9fd65dccd03633b842cdf (patch)
tree48566b40173f5a0a327346c8acd8e5ef8ff14801 /drivers
parent113bf7c44e595d7a7dc63b2696e3a9dfc2328243 (diff)
driver/gpio/sam3: Limit name space, add static.
Change-Id: Ie34094e3ed8041b2b2c44e122f71d5f69a7ce0ad Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpio/gpio_atmel_sam3.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpio/gpio_atmel_sam3.c b/drivers/gpio/gpio_atmel_sam3.c
index fca4f1d9f..ad6b6f7dc 100644
--- a/drivers/gpio/gpio_atmel_sam3.c
+++ b/drivers/gpio/gpio_atmel_sam3.c
@@ -295,7 +295,7 @@ int gpio_sam3_init(struct device *dev)
/* Port A */
#ifdef CONFIG_GPIO_ATMEL_SAM3_PORTA
-void gpio_sam3_config_a(struct device *dev);
+static void gpio_sam3_config_a(struct device *dev);
static const struct gpio_sam3_config gpio_sam3_a_cfg = {
.port = __PIOA,
@@ -310,7 +310,7 @@ DEVICE_AND_API_INIT(gpio_sam3_a, CONFIG_GPIO_ATMEL_SAM3_PORTA_DEV_NAME,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&gpio_sam3_drv_api_funcs);
-void gpio_sam3_config_a(struct device *dev)
+static void gpio_sam3_config_a(struct device *dev)
{
/* Enable clock for PIO controller */
__PMC->pcer0 = BIT(PID_PIOA);
@@ -323,7 +323,7 @@ void gpio_sam3_config_a(struct device *dev)
/* Port B */
#ifdef CONFIG_GPIO_ATMEL_SAM3_PORTB
-void gpio_sam3_config_b(struct device *dev);
+static void gpio_sam3_config_b(struct device *dev);
static const struct gpio_sam3_config gpio_sam3_b_cfg = {
.port = __PIOB,
@@ -338,7 +338,7 @@ DEVICE_AND_API_INIT(gpio_sam3_b, CONFIG_GPIO_ATMEL_SAM3_PORTB_DEV_NAME,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&gpio_sam3_drv_api_funcs);
-void gpio_sam3_config_b(struct device *dev)
+static void gpio_sam3_config_b(struct device *dev)
{
/* Enable clock for PIO controller */
__PMC->pcer0 = BIT(PID_PIOB);
@@ -351,7 +351,7 @@ void gpio_sam3_config_b(struct device *dev)
/* Port C */
#ifdef CONFIG_GPIO_ATMEL_SAM3_PORTC
-void gpio_sam3_config_c(struct device *dev);
+static void gpio_sam3_config_c(struct device *dev);
static const struct gpio_sam3_config gpio_sam3_c_cfg = {
.port = __PIOC,
@@ -366,7 +366,7 @@ DEVICE_AND_API_INIT(gpio_sam3_c, CONFIG_GPIO_ATMEL_SAM3_PORTC_DEV_NAME,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&gpio_sam3_drv_api_funcs);
-void gpio_sam3_config_c(struct device *dev)
+static void gpio_sam3_config_c(struct device *dev)
{
/* Enable clock for PIO controller */
__PMC->pcer0 = BIT(PID_PIOC);
@@ -379,7 +379,7 @@ void gpio_sam3_config_c(struct device *dev)
/* Port D */
#ifdef CONFIG_GPIO_ATMEL_SAM3_PORTD
-void gpio_sam3_config_d(struct device *dev);
+static void gpio_sam3_config_d(struct device *dev);
static const struct gpio_sam3_config gpio_sam3_d_cfg = {
.port = __PIOD,
@@ -394,7 +394,7 @@ DEVICE_AND_API_INIT(gpio_sam3_d, CONFIG_GPIO_ATMEL_SAM3_PORTD_DEV_NAME,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&gpio_sam3_drv_api_funcs);
-void gpio_sam3_config_d(struct device *dev)
+static void gpio_sam3_config_d(struct device *dev)
{
/* Enable clock for PIO controller */
__PMC->pcer0 = BIT(PID_PIOD);