Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit be1d6cb3 authored by Shraddha Barke's avatar Shraddha Barke Committed by Greg Kroah-Hartman
Browse files

Staging: fwserial: Declare fwtty_port_put as static



Declare the function fwtty_port_put 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 3bf40d65
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -893,11 +893,10 @@ static void fwserial_destroy(struct kref *kref)
	kfree(serial);
}

void fwtty_port_put(struct fwtty_port *port)
static void fwtty_port_put(struct fwtty_port *port)
{
	kref_put(&port->serial->kref, fwserial_destroy);
}
EXPORT_SYMBOL(fwtty_port_put);

static void fwtty_port_dtr_rts(struct tty_port *tty_port, int on)
{
+0 −2
Original line number Diff line number Diff line
@@ -342,8 +342,6 @@ static const char loop_dev_name[] = "fwloop";
extern struct tty_driver *fwtty_driver;

struct fwtty_port *fwtty_port_get(unsigned index);
void fwtty_port_put(struct fwtty_port *port);

/*
 * Returns the max send async payload size in bytes based on the unit device
 * link speed. Self-limiting asynchronous bandwidth (via reducing the payload)