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

Commit 699a89f1 authored by Jens Taprogge's avatar Jens Taprogge Committed by Greg Kroah-Hartman
Browse files

Staging: ipack/devices/ipoctal: remove superfluous function.



ipoctal_write_tty and ipoctal_write are merged.

Signed-off-by: default avatarJens Taprogge <jens.taprogge@taprogge.org>
Signed-off-by: default avatarSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 87cfb955
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -493,9 +493,11 @@ static inline int ipoctal_copy_write_buffer(struct ipoctal_channel *channel,
	return i;
}

static int ipoctal_write(struct ipoctal_channel *channel,
static int ipoctal_write_tty(struct tty_struct *tty,
			     const unsigned char *buf, int count)
{
	struct ipoctal_channel *channel = tty->driver_data;

	channel->nb_bytes = 0;
	channel->count_wr = 0;

@@ -519,14 +521,6 @@ static int ipoctal_write(struct ipoctal_channel *channel,
	return channel->count_wr;
}

static int ipoctal_write_tty(struct tty_struct *tty,
			     const unsigned char *buf, int count)
{
	struct ipoctal_channel *channel = tty->driver_data;

	return ipoctal_write(channel, buf, count);
}

static int ipoctal_write_room(struct tty_struct *tty)
{
	struct ipoctal_channel *channel = tty->driver_data;