summaryrefslogtreecommitdiffstats
path: root/drivers/staging/uc2322
Commit message (Collapse)AuthorAgeFilesLines
* USB: usb-serial: replace shutdown with disconnect, releaseAlan Stern2009-06-151-2/+2
| | | | | | | | | | | | | | | | 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>
* Staging: aten2011: Clean up some tty bitsAlan Cox2009-04-171-25/+3
| | | | | | | | 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>
* Staging: aten2011: fix checkpatch errors and warningsGreg Kroah-Hartman2009-04-031-123/+67
| | | | | | | | After this, only warnings are line length ones. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: aten2011: s/__FUNCTION__/__func__Greg Kroah-Hartman2009-04-031-58/+58
| | | | | | | | replace __FUNCTION__ with __func__ Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: aten2011: remove DPRINTK macroGreg Kroah-Hartman2009-04-031-190/+123
| | | | | | | | | 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>
* Staging: aten2011: fix up c++ commentsGreg Kroah-Hartman2009-04-031-142/+99
| | | | | | | | Convert all C++ comments to /* */ Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: aten2011: remove wrappers around serial get and put data functionsGreg Kroah-Hartman2009-04-031-54/+28
| | | | | | | | 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>
* Staging: aten2011: delete the Dump_serial_port functionGreg Kroah-Hartman2009-04-031-15/+0
| | | | | | | | It's useless, drop it. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: aten2011: fix up the get_uart_reg functionGreg Kroah-Hartman2009-04-031-46/+23
| | | | | | | | 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>
* Staging: aten2011: fix up the set_uart_reg functionGreg Kroah-Hartman2009-04-031-86/+52
| | | | | | | | 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>
* Staging: aten2011: fix up the get_reg_sync functionGreg Kroah-Hartman2009-04-031-31/+11
| | | | | | | | 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>
* Staging: aten2011: fix up the set_reg_sync functionGreg Kroah-Hartman2009-04-031-69/+33
| | | | | | | | 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>
* Staging: aten2011: remove paranoia check functionsGreg Kroah-Hartman2009-04-031-160/+4
| | | | | | | | They are useless so lets remove them. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: aten2011: clean up init and exit functionsGreg Kroah-Hartman2009-04-031-30/+9
| | | | | | | | | 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>
* Staging: aten2011: remove unused fields from structures.Greg Kroah-Hartman2009-04-031-46/+1
| | | | | | | | | | 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>
* Staging: aten2011: fix up sparse warningsGreg Kroah-Hartman2009-04-032-29/+18
| | | | | | | | | This resolves all of the sparse warnings. Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: aten2011: remove function prototypes.Greg Kroah-Hartman2009-04-031-350/+309
| | | | | | | | | 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>
* Staging: aten2011: remove unneeded definesGreg Kroah-Hartman2009-04-031-187/+84
| | | | | | | 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>
* Staging: aten2011: fix up comments by removing most of them.Greg Kroah-Hartman2009-04-031-568/+9
| | | | | | | | | | | | | | 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>
* Staging: aten2011: remove kernel version dependenciesGreg Kroah-Hartman2009-04-031-234/+2
| | | | | | | | 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>
* Staging: aten2011: move .h files into the driverGreg Kroah-Hartman2009-04-033-443/+399
| | | | | | | | | 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>
* Staging: aten2011: run lindentGreg Kroah-Hartman2009-04-031-1813/+1730
| | | | | | | | Run scripts/Lindent on the driver Cc: Russell Lang <gsview@ghostgum.com.au> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: add aten2011 usb to serial converter driver.Greg Kroah-Hartman2009-04-036-0/+4085
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>
OpenPOWER on IntegriCloud