tty: Make tiocgicount a handler
authorAlan Cox <alan@linux.intel.com>
Thu, 16 Sep 2010 17:21:24 +0000 (18:21 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:20:04 +0000 (10:20 -0700)
commitd281da7ff6f70efca0553c288bb883e8605b3862
treeee6a46b33070159af51c07643cf99186f1ef3e03
parent68707539df1e9d12435e5d54ffedc7ded50fcd01
tty: Make tiocgicount a handler

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>
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