summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-03-19 16:16:46 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-03-27 16:29:03 +0100
commit9828def35a366fc1045cb794d99b6b12de89fa70 (patch)
treef08aa563e64fee470f296d36ad7583814608b6dd /drivers/tty/serial
parentLinux 5.1-rc1 (diff)
downloadlinux-9828def35a366fc1045cb794d99b6b12de89fa70.tar.xz
linux-9828def35a366fc1045cb794d99b6b12de89fa70.zip
serial: 8250_fintek: Make fintek_8250_set_termios static
Fix sparse warning: drivers/tty/serial/8250/8250_fintek.c:306:6: warning: symbol 'fintek_8250_set_termios' was not declared. Should it be static? Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/8250/8250_fintek.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/tty/serial/8250/8250_fintek.c b/drivers/tty/serial/8250/8250_fintek.c
index 79a4958b3f5c..31c91c2f8c6e 100644
--- a/drivers/tty/serial/8250/8250_fintek.c
+++ b/drivers/tty/serial/8250/8250_fintek.c
@@ -303,8 +303,9 @@ static void fintek_8250_goto_highspeed(struct uart_8250_port *uart,
}
}
-void fintek_8250_set_termios(struct uart_port *port, struct ktermios *termios,
- struct ktermios *old)
+static void fintek_8250_set_termios(struct uart_port *port,
+ struct ktermios *termios,
+ struct ktermios *old)
{
struct fintek_8250 *pdata = port->private_data;
unsigned int baud = tty_termios_baud_rate(termios);