summaryrefslogtreecommitdiffstats
path: root/drivers/staging/keucr/usb.c
Commit message (Collapse)AuthorAgeFilesLines
* staging: delete non-required instances of include <linux/init.h>Paul Gortmaker2013-12-171-1/+0
| | | | | | | | | | None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: keucr: fix quoted string split across linesEbru Akagunduz2013-10-061-3/+1
| | | | | | | | Fix checkpatch.pl issues quoted string split across lines in usb.c Signed-off-by: Ebru Akagunduz <ebru.akagunduz@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* keucr: fix some alignment- and whitespace-problemsJohannes Schilling2013-06-061-5/+5
| | | | | | | | | resolves checkpatch errors and warnings regarding whitespace around operators, line lengths and indentation. Signed-off-by: Laura Lawniczak <laura.lawniczak@googlemail.com> Signed-off-by: Johannes Schilling <of82ecuq@cip.cs.fau.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* keucr: remove some unneccesary typedefsJohannes Schilling2013-06-061-2/+2
| | | | | | | | | resolves checkpatch.pl warning "do not add new typedefs" and renames allcaps structures. Signed-off-by: Laura Lawniczak <laura.lawniczak@googlemail.com> Signed-off-by: Johannes Schilling <of82ecuq@cip.cs.fau.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: keucr: remove needless check before usb_free_coherent()Wei Yongjun2013-05-301-6/+3
| | | | | | | | usb_free_coherent() is safe with NULL addr and this check is not required. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* keucr: fixes line over 80 characters warningAmarjargal Gundjalam2013-05-191-12/+24
| | | | | | | | This patch fixes the following checkpatch warning, WARNING: line over 80 characters Signed-off-by: Amarjargal Gundjalam <amarjargal16@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* keucr: fixes no spaces at the start of a line warningAmarjargal Gundjalam2013-05-191-4/+4
| | | | | | | | This patch fixes the following checkpatch warning, WARNING: please, no spaces at the start of a line Signed-off-by: Amarjargal Gundjalam <amarjargal16@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* keucr: fixes space prohibited before warningAmarjargal Gundjalam2013-05-191-1/+1
| | | | | | | | | This patch fixes the following checkpatch error and warning, ERROR: space prohibited before open square bracket '[' WARNING: space prohibited before semicolon Signed-off-by: Amarjargal Gundjalam <amarjargal16@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* keucr: fixed space prohibited between warningAmarjargal Gundjalam2013-05-191-1/+1
| | | | | | | | This patch fixes the following checkpatch warning, WARNING: space prohibited between function name and open parenthesis '(' Signed-off-by: Amarjargal Gundjalam <amarjargal16@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* keucr: fixes space required after errorAmarjargal Gundjalam2013-05-191-1/+1
| | | | | | | | This patch fixes the following checkpatch error, ERROR: space required after that ' ' Signed-off-by: Amarjargal Gundjalam <amarjargal16@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: keucr: fixed CamelCase warningKatrina Prosise2013-05-131-1/+1
| | | | | | | This patch fixes the checkpatch warning of CamelCase ENE_Read_BYTE Signed-off-by: Katrina Prosise <katrina.prosise@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: Remove unnecessary OOM messagesJoe Perches2013-02-111-3/+2
| | | | | | | | | | | | | | | | | alloc failures already get standardized OOM messages and a dump_stack. For the affected mallocs around these OOM messages: Converted kzallocs with multiplies to kcalloc. Converted kmallocs with multiplies to kmalloc_array. Converted a kmalloc/strlen/strncpy to kstrdup. Moved a spin_lock below a removed OOM message and removed a now unnecessary spin_unlock. Neatened alignment and whitespace. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: keucr: Fix parens/bracesKurt Kanzenbach2013-01-071-73/+37
| | | | | | | | | Fixed a coding style issue. Fixed positions of braces regarding to linux coding style. Signed-off-by: Kurt Kanzenbach <shifty91@gmail.com> Acked-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: keucr: Removed trailing whitespacesKurt Kanzenbach2013-01-071-2/+2
| | | | | | | | | Fixed a coding style issue. Removed trailing whitespaces in code. Signed-off-by: Kurt Kanzenbach <shifty91@gmail.com> Acked-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* staging: keucr: Replaced c99 commentsKurt Kanzenbach2013-01-071-52/+21
| | | | | | | | | | Fixed a coding style issue. Replaced all c99 comments by c89 ones and deleted commented out code. Signed-off-by: Kurt Kanzenbach <shifty91@gmail.com> Acked-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* usb: remove libusualSebastian Andrzej Siewior2012-09-051-1/+1
| | | | | | | | | | | | | The "Low Performance USB Block driver" has been removed which a user of libusual. Now we have only the usb-storage driver as the only driver in tree. This makes libusual needless. This patch removes libusal, fixes up all users. The usual-table is now linked into usb-storage. usb_usual.h remains in public include directory because some staging users seem to need it. Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* USB: convert drivers/staging/* to use module_usb_driver()Greg Kroah-Hartman2011-11-181-23/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This converts the drivers in drivers/staging/* to use the module_usb_driver() macro which makes the code smaller and a bit simpler. Added bonus is that it removes some unneeded kernel log messages about drivers loading and/or unloading. Cc: "David Täht" <d@teklibre.com> Cc: Marek Belisko <marek.belisko@gmail.com> Cc: Al Cho <acho@novell.com> Cc: Forest Bond <forest@alittletooquiet.net> Cc: Pavel Machek <pavel@ucw.cz> Cc: Huajun Li <huajun.li.lee@gmail.com> Cc: Zac Storer <zac.3.14159@gmail.com> Cc: Randy Dunlap <randy.dunlap@oracle.com> Cc: Mauro Carvalho Chehab <mchehab@redhat.com> Cc: edwin_rong <edwin_rong@realsil.com.cn> Cc: Ben Hutchings <ben@decadent.org.uk> Cc: Julia Lawall <julia@diku.dk> Cc: Ilia Mirkin <imirkin@alum.mit.edu> Cc: Joe Perches <joe@perches.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: "John W. Linville" <linville@tuxdriver.com> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Cc: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: Remove ENE UB6250 MS card codes from keucrCho, Yu-Chen2011-07-081-2/+0
| | | | | | | Remove ENE UB6250 MS card codes from keucr. Signed-off-by: Cho, Yu-Chen <acho@novell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: keucr: usb: fixed a brace coding style warningZac Storer2011-07-051-2/+1
| | | | | | | Fixed a brace coding style warning. Signed-off-by: Zac Storer <zac.3.14159@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging/keucr: fix sparse statics and non-ANSI function warningsRandy Dunlap2011-05-101-3/+4
| | | | | | | | | Make lots of functions and data static (fixes sparse warnings). Fix 5 functions to use ANSI format for function parameters (fixes sparse warnings). Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging/keucr: transport usb use pr_<level>Cho, Yu-Chen2011-04-201-43/+45
| | | | | | | transport.c usb.c use pr_<level> for messages Signed-off-by: Cho, Yu-Chen <acho@novell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: Merge ENE UB6250 SD card codes from keucr to drivers/usb/storagehuajun li2011-03-071-2/+19
| | | | | | | | The usb portion of this driver can now go into drivers/usb/storage. This leaves the non-usb portion of the code still in staging. Signed-off-by: Huajun Li <huajun.li.lee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: keucr: fix up US_ macro changeGreg Kroah-Hartman2010-10-281-4/+4
| | | | | | | The usb tree renamed the USB storage defines to make more sense, so this driver needs the changes as well so that things will compile properly. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: keucr: fix keucr lost disconnectAl Cho2010-09-161-12/+11
| | | | | | | | | | keucr lost the disconnect, so keucr crash when plug-in and then plug-out SD-card quickly. unmark the part of usb disconnect Signed-off-by: Al Cho <acho@novell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging/keucr: fix build when CONFIG_PM is not enabledRandy Dunlap2010-09-161-0/+9
| | | | | | | | | | | | | keucr driver has a build error when CONFIG_PM is not enabled, so fix that. drivers/staging/keucr/usb.c:42: error: 'struct us_data' has no member named 'suspend_resume_hook' drivers/staging/keucr/usb.c:43: error: 'struct us_data' has no member named 'suspend_resume_hook' drivers/staging/keucr/usb.c:64: error: 'struct us_data' has no member named 'suspend_resume_hook' drivers/staging/keucr/usb.c:65: error: 'struct us_data' has no member named 'suspend_resume_hook' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Cc: Al Cho <acho@novell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: add USB ENE card reader driverAl Cho2010-09-081-0/+701
This driver is for the ENE card reader that can be found in many different laptops. It was written by ENE, but cleaned up to work properly in the kernel tree by Novell. Signed-off-by: Al Cho <acho@novell.com> Cc: <yiyingc@ene.com.tw> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
OpenPOWER on IntegriCloud