diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-06-22 16:48:49 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-06 13:09:35 -0400 |
commit | 49ddcf3e0e923040ef554d9ea033e0d8ba7e80e1 (patch) | |
tree | 39424324a20bd8d217a51240647959524193053c /drivers/serial/serial.c | |
parent | 7e09145ea2e985511c660bdf567b61614acd75b3 (diff) |
serial: make serial_stub_* to static functions
Add missing static to serial_stub_puts().
Unexport serial_stub_{getc,tstc} because they are used locally.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial/serial.c')
-rw-r--r-- | drivers/serial/serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index f2bd0e404c..87542f92df 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -273,14 +273,14 @@ static void serial_stub_puts(struct stdio_dev *sdev, const char *str) dev->puts(str); } -int serial_stub_getc(struct stdio_dev *sdev) +static int serial_stub_getc(struct stdio_dev *sdev) { struct serial_device *dev = sdev->priv; return dev->getc(); } -int serial_stub_tstc(struct stdio_dev *sdev) +static int serial_stub_tstc(struct stdio_dev *sdev) { struct serial_device *dev = sdev->priv; |