Skip to contentSkip to conversation

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

RFC PATCH In review Alan Cox 2 participants 2 messages Aug 22, 2012 – Aug 24, 2012 TTY layer and serial drivers

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

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

Jiri - this seem more sensible ?

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/Kbuild      |    1 +
 include/linux/serial.h    |   75 ++-----------------------------------------
 include/linux/tty.h       |    1 +
 include/linux/tty_flags.h |   78 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 83 insertions(+), 72 deletions(-)
 create mode 100644 include/linux/tty_flags.h
include/linux/Kbuild +1 -0
index b3d6385..b45caff 100644
@@ -370,6 +370,7 @@ header-y += tipc.h
 header-y += tipc_config.h
 header-y += toshiba.h
 header-y += tty.h
+header-y += tty_flags.h
 header-y += types.h
 header-y += udf_fs_i.h
 header-y += udp.h
include/linux/serial.h +3 -72

90 lines not on this page · raw message

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

Acked-by on v1 1/1
#1 lore raw
Quoted 1 line · Alan Cox

Jiri - this seem more sensible ?

I would be faster if you CCed me :).

Quoted 7 lines

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.

Quoted 6 lines
 include/linux/Kbuild      |    1 +
 include/linux/serial.h    |   75 ++-----------------------------------------
 include/linux/tty.h       |    1 +
 include/linux/tty_flags.h |   78 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 83 insertions(+), 72 deletions(-)
 create mode 100644 include/linux/tty_flags.h

thanks,

Signature · 2 lines
js
suse labs