]> git.karo-electronics.de Git - linux-beck.git/commit
USB: serial: ir_usb: Clean up the worst of it, remove exciting 'crash on open' feature
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Fri, 22 Jun 2007 13:44:54 +0000 (14:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:34:37 +0000 (16:34 -0700)
commita6ea438b6d38689b7f876093bcba4505fe1995d1
tree76c090a4c4c5de30184605e84019ecde5beaeac7
parent9a8baec77205dfe14f98a4e291c830a311125a8b
USB: serial: ir_usb: Clean up the worst of it, remove exciting 'crash on open' feature

- Drivers don't call ldisc termios methods. They certainly don't call
them the way this one does - remove wrong call
- The tty buffer code isn't designed to be abused from IRQ handlers and
the new buffering removes the need for the uglies involved - fix them
- Style
- Remove incorrect baud and change handling for termios changes

The driver now has some style, but not a lot - it goes insane if you have
two dongles for example as it continues to use global variables for per
dongle state. That bit isn't my problem.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ir-usb.c