tty: Remove tty_prepare_flip_string_flags()
authorPeter Hurley <peter@hurleysoftware.com>
Fri, 22 Nov 2013 17:09:57 +0000 (12:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 00:57:38 +0000 (16:57 -0800)
There is no in-tree user of tty_prepare_flip_string_flags(); remove.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_buffer.c
include/linux/tty_flip.h

index e8f22f833b4e9325becc39ea7b7e13dd37b06136..6a3620e1cc7aa119687a8a2acce41d6ac7fe4b9e 100644 (file)
@@ -373,34 +373,6 @@ int tty_prepare_flip_string(struct tty_port *port, unsigned char **chars,
 }
 EXPORT_SYMBOL_GPL(tty_prepare_flip_string);
 
-/**
- *     tty_prepare_flip_string_flags   -       make room for characters
- *     @port: tty port
- *     @chars: return pointer for character write area
- *     @flags: return pointer for status flag write area
- *     @size: desired size
- *
- *     Prepare a block of space in the buffer for data. Returns the length
- *     available and buffer pointer to the space which is now allocated and
- *     accounted for as ready for characters. This is used for drivers
- *     that need their own block copy routines into the buffer. There is no
- *     guarantee the buffer is a DMA target!
- */
-
-int tty_prepare_flip_string_flags(struct tty_port *port,
-                       unsigned char **chars, char **flags, size_t size)
-{
-       int space = tty_buffer_request_room(port, size);
-       if (likely(space)) {
-               struct tty_buffer *tb = port->buf.tail;
-               *chars = char_buf_ptr(tb, tb->used);
-               *flags = flag_buf_ptr(tb, tb->used);
-               tb->used += space;
-       }
-       return space;
-}
-EXPORT_SYMBOL_GPL(tty_prepare_flip_string_flags);
-
 
 static int
 receive_buf(struct tty_struct *tty, struct tty_buffer *head, int count)
index 2da8bc2a5486017be70d7a11b83d0381a4fc0cc0..3f821e98af0f877ff1a5b5cc65b387a5c85932bd 100644 (file)
@@ -10,8 +10,6 @@ extern int tty_insert_flip_string_fixed_flag(struct tty_port *port,
                const unsigned char *chars, char flag, size_t size);
 extern int tty_prepare_flip_string(struct tty_port *port,
                unsigned char **chars, size_t size);
-extern int tty_prepare_flip_string_flags(struct tty_port *port,
-               unsigned char **chars, char **flags, size_t size);
 extern void tty_flip_buffer_push(struct tty_port *port);
 void tty_schedule_flip(struct tty_port *port);