diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2006-03-20 15:00:09 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-03-20 15:00:09 -0500 |
commit | d358788f3f30113e49882187d794832905e42592 (patch) | |
tree | 8c796ee4bf719dad4d3947c03cef2f3fd6cb5940 /include | |
parent | 7705a8792b0fc82fd7d4dd923724606bbfd9fb20 (diff) |
[SERIAL] kernel console should send CRLF not LFCR
Glen Turner reported that writing LFCR rather than the more
traditional CRLF causes issues with some terminals.
Since this aflicts many serial drivers, extract the common code
to a library function (uart_console_write) and arrange for each
driver to supply a "putchar" function.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/serial_core.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 4041122dabfc..f7434e5086f5 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
@@ -366,6 +366,9 @@ void uart_parse_options(char *options, int *baud, int *parity, int *bits, | |||
366 | int uart_set_options(struct uart_port *port, struct console *co, int baud, | 366 | int uart_set_options(struct uart_port *port, struct console *co, int baud, |
367 | int parity, int bits, int flow); | 367 | int parity, int bits, int flow); |
368 | struct tty_driver *uart_console_device(struct console *co, int *index); | 368 | struct tty_driver *uart_console_device(struct console *co, int *index); |
369 | void uart_console_write(struct uart_port *port, const char *s, | ||
370 | unsigned int count, | ||
371 | void (*putchar)(struct uart_port *, int)); | ||
369 | 372 | ||
370 | /* | 373 | /* |
371 | * Port/driver registration/removal | 374 | * Port/driver registration/removal |