Commit 3fe9f21a authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman

Staging: fwserial: Declare fwtty_port_get as static

Declare the function fwtty_port_get as static since it is used
only in this particular file. Also remove the corresponding
declaration from header file.
Signed-off-by: default avatarShraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5cb10d42
...@@ -828,7 +828,7 @@ static void fwtty_write_xchar(struct fwtty_port *port, char ch) ...@@ -828,7 +828,7 @@ static void fwtty_write_xchar(struct fwtty_port *port, char ch)
rcu_read_unlock(); rcu_read_unlock();
} }
struct fwtty_port *fwtty_port_get(unsigned index) static struct fwtty_port *fwtty_port_get(unsigned index)
{ {
struct fwtty_port *port; struct fwtty_port *port;
...@@ -842,7 +842,6 @@ struct fwtty_port *fwtty_port_get(unsigned index) ...@@ -842,7 +842,6 @@ struct fwtty_port *fwtty_port_get(unsigned index)
mutex_unlock(&port_table_lock); mutex_unlock(&port_table_lock);
return port; return port;
} }
EXPORT_SYMBOL(fwtty_port_get);
static int fwtty_ports_add(struct fw_serial *serial) static int fwtty_ports_add(struct fw_serial *serial)
{ {
......
...@@ -341,7 +341,6 @@ static const char loop_dev_name[] = "fwloop"; ...@@ -341,7 +341,6 @@ static const char loop_dev_name[] = "fwloop";
extern struct tty_driver *fwtty_driver; extern struct tty_driver *fwtty_driver;
struct fwtty_port *fwtty_port_get(unsigned index);
/* /*
* Returns the max send async payload size in bytes based on the unit device * Returns the max send async payload size in bytes based on the unit device
* link speed. Self-limiting asynchronous bandwidth (via reducing the payload) * link speed. Self-limiting asynchronous bandwidth (via reducing the payload)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment