diff mbox

[U-Boot,17/49] gpio: make local functions static

Message ID 1412801889-14400-18-git-send-email-jeroen@myspectrum.nl
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Jeroen Hofstee Oct. 8, 2014, 8:57 p.m. UTC
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
---
 drivers/gpio/bcm2835_gpio.c | 2 +-
 drivers/gpio/kw_gpio.c      | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Comments

Tom Rini Oct. 27, 2014, 12:32 a.m. UTC | #1
On Wed, Oct 08, 2014 at 10:57:37PM +0200, Jeroen Hofstee wrote:

> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/drivers/gpio/bcm2835_gpio.c b/drivers/gpio/bcm2835_gpio.c
index 97b5137..4a473d7 100644
--- a/drivers/gpio/bcm2835_gpio.c
+++ b/drivers/gpio/bcm2835_gpio.c
@@ -9,7 +9,7 @@ 
 #include <asm/gpio.h>
 #include <asm/io.h>
 
-inline int gpio_is_valid(unsigned gpio)
+static inline int gpio_is_valid(unsigned gpio)
 {
 	return (gpio < BCM2835_GPIO_COUNT);
 }
diff --git a/drivers/gpio/kw_gpio.c b/drivers/gpio/kw_gpio.c
index 0af75a8..d5a7e78 100644
--- a/drivers/gpio/kw_gpio.c
+++ b/drivers/gpio/kw_gpio.c
@@ -36,7 +36,7 @@  void __set_direction(unsigned pin, int input)
 	u = readl(GPIO_IO_CONF(pin));
 }
 
-void __set_level(unsigned pin, int high)
+static void __set_level(unsigned pin, int high)
 {
 	u32 u;
 
@@ -48,7 +48,7 @@  void __set_level(unsigned pin, int high)
 	writel(u, GPIO_OUT(pin));
 }
 
-void __set_blinking(unsigned pin, int blink)
+static void __set_blinking(unsigned pin, int blink)
 {
 	u32 u;