Char: mxser, ioctl cleanup
authorJiri Slaby <jirislaby@gmail.com>
Fri, 25 Jul 2008 08:48:19 +0000 (01:48 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Jul 2008 17:53:43 +0000 (10:53 -0700)
commit41aee9a121fd0c31ae22dfe57e8f9ee9d6d85c25
tree0b55efab61c97366b053e026ad31e711b69d4d82
parent6ee8928d94841aa764aeaf645ad16daff811dc26
Char: mxser, ioctl cleanup

- remove break ctl from ioctl handler, it's never reached, since
  tty_ops->break_ctl is defined (mxser break handling is done in software)
- mark MOXA_GET_MAJOR as deprecated
- fix TIOCGICOUNT (some retval non-checks of put_user). Use copy_to_user
  to whole structure instead.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/mxser.c