diff options
author | Alan Cox <alan@redhat.com> | 2008-07-22 06:18:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-22 16:03:28 -0400 |
commit | 9e98966c7bb94355689478bc84cc3e0c190f977e (patch) | |
tree | 928aebbfee524a48aa94a3d3def5249c8846a79a /drivers/char/sx.c | |
parent | abbe629ae4011d2020047f41bea9f9e4b0ec4361 (diff) |
tty: rework break handling
Some hardware needs to do break handling itself and may have partial
support only. Make break_ctl return an error code. Add a tty driver flag
so you can indicate driver hardware side break support.
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/sx.c')
-rw-r--r-- | drivers/char/sx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/sx.c b/drivers/char/sx.c index d5cffcd6a572..2162439bbe48 100644 --- a/drivers/char/sx.c +++ b/drivers/char/sx.c | |||
@@ -1840,7 +1840,7 @@ static int sx_fw_ioctl(struct inode *inode, struct file *filp, | |||
1840 | return rc; | 1840 | return rc; |
1841 | } | 1841 | } |
1842 | 1842 | ||
1843 | static void sx_break(struct tty_struct *tty, int flag) | 1843 | static int sx_break(struct tty_struct *tty, int flag) |
1844 | { | 1844 | { |
1845 | struct sx_port *port = tty->driver_data; | 1845 | struct sx_port *port = tty->driver_data; |
1846 | int rv; | 1846 | int rv; |
@@ -1857,6 +1857,7 @@ static void sx_break(struct tty_struct *tty, int flag) | |||
1857 | read_sx_byte(port->board, CHAN_OFFSET(port, hi_hstat))); | 1857 | read_sx_byte(port->board, CHAN_OFFSET(port, hi_hstat))); |
1858 | unlock_kernel(); | 1858 | unlock_kernel(); |
1859 | func_exit(); | 1859 | func_exit(); |
1860 | return 0; | ||
1860 | } | 1861 | } |
1861 | 1862 | ||
1862 | static int sx_tiocmget(struct tty_struct *tty, struct file *file) | 1863 | static int sx_tiocmget(struct tty_struct *tty, struct file *file) |