diff options
author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2008-06-03 15:18:54 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-06-03 08:20:17 -0700 |
commit | 64e9159f5d2c4edf5fa6425031e556f8fddaf7e6 (patch) | |
tree | 77989ed8da4c26be343c1e3e065cdfbb152a44cd /include | |
parent | 4b34fe156455d26ee6ed67b61539f136bf4e439c (diff) | |
download | linux-64e9159f5d2c4edf5fa6425031e556f8fddaf7e6.tar.gz linux-64e9159f5d2c4edf5fa6425031e556f8fddaf7e6.tar.bz2 linux-64e9159f5d2c4edf5fa6425031e556f8fddaf7e6.zip |
serial_core: uart_set_ldisc infrastructure
The tty layer provides a callback that is used when the line discipline
is changed. Some hardware uses this to configure hardware specific
features such as IrDA mode on serial ports. Unfortunately the serial
layer does not provide this feature or pass it down to drivers.
Blackfin used to hack around this by rewriting the tty ops, but those are
now properly shared and const so the hack fails. Instead provide the
proper operations.
This change plus a follow up from the Blackfin guys is needed to avoid
blackfin losing features in this release.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/serial_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index d32123ae08ad..d8f31de632c5 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h @@ -192,6 +192,7 @@ struct uart_ops { void (*shutdown)(struct uart_port *); void (*set_termios)(struct uart_port *, struct ktermios *new, struct ktermios *old); + void (*set_ldisc)(struct uart_port *); void (*pm)(struct uart_port *, unsigned int state, unsigned int oldstate); int (*set_wake)(struct uart_port *, unsigned int state); |