diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2006-12-08 05:38:43 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 11:28:56 -0500 |
commit | be90038a24c814dc98bc5a813f41855779000018 (patch) | |
tree | 6ed4585714f0a90e0de6627c403adc3fc42644d2 /drivers/net/wireless | |
parent | 96b066b85c8e5b28fa7f25a7f0644f70f46b8881 (diff) |
[PATCH] tty: preparatory structures for termios revamp
In order to sort out our struct termios and add proper speed control we need
to separate the kernel and user termios structures. Glibc is fine but the
other libraries rely on the kernel exported struct termios and we need to
extend this without breaking the ABI/API
To do so we add a struct ktermios which is the kernel view of a termios
structure and overlaps the struct termios with extra fields on the end for
now. (That limitation will go away in later patches). Some platforms (eg
alpha) planned ahead and thus use the same struct for both, others did not.
This just adds the structures but does not use them, it seems a sensible
splitting point for bisect if there are compile failures (not that I expect
them)
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/strip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/strip.c b/drivers/net/wireless/strip.c index 337c692f6fd6..ce3a8bac66ff 100644 --- a/drivers/net/wireless/strip.c +++ b/drivers/net/wireless/strip.c | |||
@@ -798,7 +798,7 @@ static unsigned int get_baud(struct tty_struct *tty) | |||
798 | */ | 798 | */ |
799 | static void set_baud(struct tty_struct *tty, unsigned int baudcode) | 799 | static void set_baud(struct tty_struct *tty, unsigned int baudcode) |
800 | { | 800 | { |
801 | struct termios old_termios = *(tty->termios); | 801 | struct ktermios old_termios = *(tty->termios); |
802 | tty->termios->c_cflag &= ~CBAUD; /* Clear the old baud setting */ | 802 | tty->termios->c_cflag &= ~CBAUD; /* Clear the old baud setting */ |
803 | tty->termios->c_cflag |= baudcode; /* Set the new baud setting */ | 803 | tty->termios->c_cflag |= baudcode; /* Set the new baud setting */ |
804 | tty->driver->set_termios(tty, &old_termios); | 804 | tty->driver->set_termios(tty, &old_termios); |