aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens Taprogge <jens.taprogge@taprogge.org>2012-09-12 08:55:31 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-12 12:54:16 -0400
commit699a89f1e291af0d47744200011d5c24d9e462a6 (patch)
tree2d9612a09de53c11983ab30d64c6fda79284e115
parent87cfb955007ece1ba2a78a419c033942ee300972 (diff)
Staging: ipack/devices/ipoctal: remove superfluous function.
ipoctal_write_tty and ipoctal_write are merged. Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org> Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/ipack/devices/ipoctal.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/staging/ipack/devices/ipoctal.c b/drivers/staging/ipack/devices/ipoctal.c
index e0be6604c1ec..4cc91730f34e 100644
--- a/drivers/staging/ipack/devices/ipoctal.c
+++ b/drivers/staging/ipack/devices/ipoctal.c
@@ -493,9 +493,11 @@ static inline int ipoctal_copy_write_buffer(struct ipoctal_channel *channel,
493 return i; 493 return i;
494} 494}
495 495
496static int ipoctal_write(struct ipoctal_channel *channel, 496static int ipoctal_write_tty(struct tty_struct *tty,
497 const unsigned char *buf, int count) 497 const unsigned char *buf, int count)
498{ 498{
499 struct ipoctal_channel *channel = tty->driver_data;
500
499 channel->nb_bytes = 0; 501 channel->nb_bytes = 0;
500 channel->count_wr = 0; 502 channel->count_wr = 0;
501 503
@@ -519,14 +521,6 @@ static int ipoctal_write(struct ipoctal_channel *channel,
519 return channel->count_wr; 521 return channel->count_wr;
520} 522}
521 523
522static int ipoctal_write_tty(struct tty_struct *tty,
523 const unsigned char *buf, int count)
524{
525 struct ipoctal_channel *channel = tty->driver_data;
526
527 return ipoctal_write(channel, buf, count);
528}
529
530static int ipoctal_write_room(struct tty_struct *tty) 524static int ipoctal_write_room(struct tty_struct *tty)
531{ 525{
532 struct ipoctal_channel *channel = tty->driver_data; 526 struct ipoctal_channel *channel = tty->driver_data;