tty: move tioclinux from a special case
Right now we have ifdefs and hooks in the core ioctl handler for TIOCLINUX and then test if its a console. This is brain dead. Instead call the tioclinux helper from the relevant driver ioctl methods. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -3026,10 +3026,6 @@ long tty_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
||||
return put_user(tty->ldisc.ops->num, (int __user *)p);
|
||||
case TIOCSETD:
|
||||
return tiocsetd(tty, p);
|
||||
#ifdef CONFIG_VT
|
||||
case TIOCLINUX:
|
||||
return tioclinux(tty, arg);
|
||||
#endif
|
||||
/*
|
||||
* Break handling
|
||||
*/
|
||||
|
Reference in New Issue
Block a user