tty: Make tiocgicount a handler
commiteb44c0460c54e9f3f37d139f67c52b753319dd67
authorAlan Cox <alan@linux.intel.com>
Sun, 13 Nov 2011 15:24:57 +0000 (13 18:24 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 26 Nov 2011 17:10:38 +0000 (26 09:10 -0800)
tree1fc296c74f51cc14dd53f74b4a6d6985c73cdc9b
parenteed767852eac13ed89e66e9a89c8668fdc79ae93
tty: Make tiocgicount a handler

commit d281da7ff6f70efca0553c288bb883e8605b3862 upstream

Dan Rosenberg noted that various drivers return the struct with uncleared
fields. Instead of spending forever trying to stomp all the drivers that
get it wrong (and every new driver) do the job in one place.

This first patch adds the needed operations and hooks them up, including
the needed USB midlayer and serial core plumbing.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
drivers/char/tty_io.c
drivers/serial/serial_core.c
drivers/usb/serial/usb-serial.c
include/linux/tty_driver.h
include/linux/usb/serial.h