tty: Make tiocgicount a handler
authorAlan Cox <alan@linux.intel.com>
Thu, 16 Sep 2010 17:21:24 +0000 (18:21 +0100)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:21:37 +0000 (11:21 -0400)
commitae64ec88e2f05594a92cdff0ee8f5b4582b2daf8
tree75888df00ef3da96a0e17d32b84fee14ca27f5ce
parent187979ee305a6ac1939daeb90e6446182f5e1617
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: Paul Gortmaker <paul.gortmaker@windriver.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