Skip to content

Commit

Permalink
Staging: fwserial: Declare fwtty_port_get as static
Browse files Browse the repository at this point in the history
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: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Shraddha Barke authored and Greg Kroah-Hartman committed Jan 29, 2016
1 parent 5cb10d4 commit 3fe9f21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions drivers/staging/fwserial/fwserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ static void fwtty_write_xchar(struct fwtty_port *port, char ch)
rcu_read_unlock();
}

struct fwtty_port *fwtty_port_get(unsigned index)
static struct fwtty_port *fwtty_port_get(unsigned index)
{
struct fwtty_port *port;

Expand All @@ -842,7 +842,6 @@ struct fwtty_port *fwtty_port_get(unsigned index)
mutex_unlock(&port_table_lock);
return port;
}
EXPORT_SYMBOL(fwtty_port_get);

static int fwtty_ports_add(struct fw_serial *serial)
{
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/fwserial/fwserial.h
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ static const char loop_dev_name[] = "fwloop";

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
* link speed. Self-limiting asynchronous bandwidth (via reducing the payload)
Expand Down

0 comments on commit 3fe9f21

Please sign in to comment.