summaryrefslogtreecommitdiff
path: root/include/linux/serial_core.h
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2010-06-01 20:52:53 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 20:47:41 (GMT)
commitd87d9b7d19f04b16c4406d3c0feeca10090e0ada (patch)
treec6eadc964d4fdfe9e421a2d4d4143748f4668a6b /include/linux/serial_core.h
parenteab4f5af6b07009d1fc48bac5f3215c0cbfb2fc3 (diff)
downloadlinux-fsl-qoriq-d87d9b7d19f04b16c4406d3c0feeca10090e0ada.tar.xz
tty: serial - fix tty referencing in set_ldisc
Pass down the ldisc number so that the drivers don't have to peek into the tty object themselves. This lets us get rid of another case of back referencing port to tty which we don't want (because of races versus hangup/close). Signed-off-by: Alan Cox <alan@linux.intel.com> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/serial_core.h')
-rw-r--r--include/linux/serial_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index f10db6e..3292816 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -220,7 +220,7 @@ struct uart_ops {
void (*flush_buffer)(struct uart_port *);
void (*set_termios)(struct uart_port *, struct ktermios *new,
struct ktermios *old);
- void (*set_ldisc)(struct uart_port *);
+ void (*set_ldisc)(struct uart_port *, int new);
void (*pm)(struct uart_port *, unsigned int state,
unsigned int oldstate);
int (*set_wake)(struct uart_port *, unsigned int state);