summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorJeroen Hofstee <jeroen@myspectrum.nl>2014-10-08 22:57:44 +0200
committerTom Rini <trini@ti.com>2014-10-25 07:02:02 -0400
commit654f8d0f3d4c606b75b70bbf0b1303a6074f0788 (patch)
treed011e05a0ff0a94d423b411759bda6e3ce51c01e /drivers/serial
parent6588c78bf3d2da719286a3b89f10c0e64d731c3a (diff)
serial: make local functions static
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial.c8
-rw-r--r--drivers/serial/serial_sh.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c
index 82fbbd92e2..71cb97d14f 100644
--- a/drivers/serial/serial.c
+++ b/drivers/serial/serial.c
@@ -256,28 +256,28 @@ void serial_initialize(void)
serial_assign(default_serial_console()->name);
}
-int serial_stub_start(struct stdio_dev *sdev)
+static int serial_stub_start(struct stdio_dev *sdev)
{
struct serial_device *dev = sdev->priv;
return dev->start();
}
-int serial_stub_stop(struct stdio_dev *sdev)
+static int serial_stub_stop(struct stdio_dev *sdev)
{
struct serial_device *dev = sdev->priv;
return dev->stop();
}
-void serial_stub_putc(struct stdio_dev *sdev, const char ch)
+static void serial_stub_putc(struct stdio_dev *sdev, const char ch)
{
struct serial_device *dev = sdev->priv;
dev->putc(ch);
}
-void serial_stub_puts(struct stdio_dev *sdev, const char *str)
+static void serial_stub_puts(struct stdio_dev *sdev, const char *str)
{
struct serial_device *dev = sdev->priv;
diff --git a/drivers/serial/serial_sh.c b/drivers/serial/serial_sh.c
index 144a925394..7c1f271376 100644
--- a/drivers/serial/serial_sh.c
+++ b/drivers/serial/serial_sh.c
@@ -122,7 +122,7 @@ static void handle_error(void)
sci_out(&sh_sci, SCLSR, 0x00);
}
-void serial_raw_putc(const char c)
+static void serial_raw_putc(const char c)
{
while (1) {
/* Tx fifo is empty */
@@ -152,7 +152,7 @@ static int sh_serial_tstc(void)
}
-int serial_getc_check(void)
+static int serial_getc_check(void)
{
unsigned short status;