Skip to contentSkip to conversation

serial: mux: Convert to uart_console_device instead of open-coded

PATCH New Axel Lin 1 participant 1 message Sep 19, 2015 TTY layer and serial drivers

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 serial: mux: Convert to uart_console_device instead of open-coded

The implementation of mux_console_device() is very similar to uart_console_device(). Setting .data field in mux_console then we can convert to use uart_console_device().

---
I don't have this h/w to test, so I'd appreciate if someone can test it.

 drivers/tty/serial/mux.c | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
drivers/tty/serial/mux.c +0 -5
index dd26511..8a4be4b 100644
@@ -412,19 +412,14 @@ static int mux_console_setup(struct console *co, char *options)
         return 0;
 }
 
-struct tty_driver *mux_console_device(struct console *co, int *index)
-{
-        *index = co->index;
-	return mux_driver.tty_driver;
-}