summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRussell King <rmk@flint.arm.linux.org.uk>2002-11-02 10:59:49 +0000
committerRussell King <rmk@flint.arm.linux.org.uk>2002-11-02 10:59:49 +0000
commiteef76d736e70f8d9abe7c172297024d549aceb87 (patch)
tree7a2626463be0ccea9178c78b43f6920a9a930c2c /include/linux
parent1c58248d61e73505109d58ed90ab986ee205a7a2 (diff)
[SERIAL] Rename uart_event() to uart_write_wakeup()
uart_event() only has one purpose, which is to wake up any pending writers via the line discipline. Rename it to reflect its real functionality, and drop EVT_WRITE_WAKEUP.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/serial_core.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index ecba24e3d875..702b81dfa0f3 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -247,8 +247,6 @@ struct uart_info {
/* number of characters left in xmit buffer before we ask for more */
#define WAKEUP_CHARS 256
-#define EVT_WRITE_WAKEUP 0
-
struct module;
struct tty_driver;
@@ -269,7 +267,7 @@ struct uart_driver {
struct tty_driver *tty_driver;
};
-void uart_event(struct uart_port *port, int event);
+void uart_write_wakeup(struct uart_port *port);
struct uart_port *uart_get_console(struct uart_port *ports, int nr,
struct console *c);
void uart_parse_options(char *options, int *baud, int *parity, int *bits,
@@ -380,7 +378,7 @@ uart_handle_cts_change(struct uart_port *port, unsigned int status)
if (status) {
tty->hw_stopped = 0;
port->ops->start_tx(port, 0);
- uart_event(port, EVT_WRITE_WAKEUP);
+ uart_write_wakeup(port);
}
} else {
if (!status) {