]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd797d7d6352f1e9bba51a5da189c64f3518602c6
tree0b55efab61c97366b053e026ad31e711b69d4d82
parente551852cff0c14b616a22b069efa62445d877eac
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