summaryrefslogtreecommitdiff
path: root/drivers/staging/uc2322
AgeCommit message (Collapse)Author
2009-06-16USB: usb-serial: replace shutdown with disconnect, releaseAlan Stern
This patch (as1254) splits up the shutdown method of usb_serial_driver into a disconnect and a release method. The problem is that the usb-serial core was calling shutdown during disconnect handling, but drivers didn't expect it to be called until after all the open file references had been closed. The result was an oops when the close method tried to use memory that had been deallocated by shutdown. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-17Staging: aten2011: Clean up some tty bitsAlan Cox
Minor fixes for tty layer stuff in this driver Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: fix checkpatch errors and warningsGreg Kroah-Hartman
After this, only warnings are line length ones. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: s/__FUNCTION__/__func__Greg Kroah-Hartman
replace __FUNCTION__ with __func__ Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: remove DPRINTK macroGreg Kroah-Hartman
Convert to use the dbg() macro we already have in the usb-serial layer. This also turns off the default for the driver to spit out all of the debug messages, now it is controlled by the module parameter. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: fix up c++ commentsGreg Kroah-Hartman
Convert all C++ comments to /* */ Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: remove wrappers around serial get and put data functionsGreg Kroah-Hartman
Don't wrap things that do not need to be wrapped... Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: delete the Dump_serial_port functionGreg Kroah-Hartman
It's useless, drop it. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: fix up the get_uart_reg functionGreg Kroah-Hartman
Name it something sane, and fix up the code to be cleaner. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: fix up the set_uart_reg functionGreg Kroah-Hartman
Name it something sane, and fix up the code to be cleaner. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: fix up the get_reg_sync functionGreg Kroah-Hartman
Name it something sane, and fix up the code to be cleaner. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: fix up the set_reg_sync functionGreg Kroah-Hartman
Name it something sane, and fix up the code to be cleaner. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: remove paranoia check functionsGreg Kroah-Hartman
They are useless so lets remove them. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: clean up init and exit functionsGreg Kroah-Hartman
This makes them smaller, and fixes the name of the serial driver structure. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: remove unused fields from structures.Greg Kroah-Hartman
As the driver was copied from another one, there are lots of fields that are unused due to the hardware being different. Remove a bunch of them, more will be removed later. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: fix up sparse warningsGreg Kroah-Hartman
This resolves all of the sparse warnings. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: remove function prototypes.Greg Kroah-Hartman
Reorginize functions to get rid of forward prototypes so they are no longer needed. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: remove unneeded definesGreg Kroah-Hartman
Lots of unused and unneeded #defines in this code, so lets remove them. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: fix up comments by removing most of them.Greg Kroah-Hartman
This driver was copied from the io_edgeport.c driver, so we need to put the proper copyright information back on it. Also, almost all of the function comments are directly from the original io_edgeport driver, and most of them are either totally wrong now due to changes, or redundant. So delete them all so no one gets confused by anything. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: remove kernel version dependenciesGreg Kroah-Hartman
As we are wanting to be in the main kernel tree, remove the #ifdef stuff for different kernel versions. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: move .h files into the driverGreg Kroah-Hartman
No need for external .h files for a simple usb-serial driver, move them into the .c file to make things easier to cleanup. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: aten2011: run lindentGreg Kroah-Hartman
Run scripts/Lindent on the driver Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-03Staging: add aten2011 usb to serial converter driver.Greg Kroah-Hartman
Many thanks to Russell Lang <gsview@ghostgum.com.au> for his help in getting this working on newer kernel versions and for pointing out this driver in the first place. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>