summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2003-05-07 01:51:02 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2003-05-07 01:51:02 -0700
commitcc6670c26835e468aa35d481b2c9121bee4351fe (patch)
treefc43246997b0fdc35d2ff4031995bc4419b8f38c /include
parent618c9e0c3dd93ce1970e62d479e8de982098a68d (diff)
TTY: add tty class support for all tty devices.
Diffstat (limited to 'include')
-rw-r--r--include/linux/tty.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h
index d7948e7ad0eb..fa5529ad5c6e 100644
--- a/include/linux/tty.h
+++ b/include/linux/tty.h
@@ -243,6 +243,7 @@ struct tty_flip_buffer {
#define L_PENDIN(tty) _L_FLAG((tty),PENDIN)
#define L_IEXTEN(tty) _L_FLAG((tty),IEXTEN)
+struct device;
/*
* Where all of the state associated with a tty is kept while the tty
* is open. Since the termios state should be kept even if the tty
@@ -380,7 +381,7 @@ extern void start_tty(struct tty_struct * tty);
extern int tty_register_ldisc(int disc, struct tty_ldisc *new_ldisc);
extern int tty_register_driver(struct tty_driver *driver);
extern int tty_unregister_driver(struct tty_driver *driver);
-extern void tty_register_device(struct tty_driver *driver, unsigned index);
+extern void tty_register_device(struct tty_driver *driver, unsigned index, struct device *dev);
extern void tty_unregister_device(struct tty_driver *driver, unsigned index);
extern int tty_read_raw_data(struct tty_struct *tty, unsigned char *bufp,
int buflen);