Skip to contentSkip to conversation

tty: move the async flags from the serial code into the tty includes

PATCH New Alan Cox 1 participant 1 message Aug 22, 2012 TTY layer and serial drivers

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 tty: move the async flags from the serial code into the tty includes

From: Alan Cox <[email protected]>

These are used with the tty_port flags which are tty generic so move the flags into a more sensible place. This then makes it possible to add helpers such as those suggested by Huang Shijie.

---

 include/linux/serial.h    |    2 +
 include/linux/tty.h       |    1 +
 include/linux/tty_flags.h |   78 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 81 insertions(+)
 create mode 100644 include/linux/tty_flags.h
include/linux/serial.h +2 -0
index 90e9f98..d63866d 100644
@@ -15,6 +15,8 @@
 #ifdef __KERNEL__
 #include <asm/page.h>
 
+#include <linux/tty_flags.h>
+
 /*
  * Counters of the input lines (CTS, DSR, RI, CD) interrupts
  */
include/linux/tty.h +1 -0
index 69a787f..dbebd1e 100644
@@ -43,6 +43,7 @@
 #include <linux/tty_driver.h>
 #include <linux/tty_ldisc.h>
 #include <linux/mutex.h>
+#include <linux/tty_flags.h>
 
 
 
include/linux/tty_flags.h new file +78 -0

78 lines not on this page · raw message