summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Staging: vt665x: 64bit compile fixes Part 2Jim Lieb2009-09-158-19/+15
| | | | | | | | | | Fix compile problems with 64bit. These issues could cause corrupted address crashes. Cleanup definition use to use more portable kernel typedefs etc. Signed-off-by: Jim Lieb <lieb@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: vt665x: 64bit compile fixes Part 1Jim Lieb2009-09-158-29/+28
| | | | | | | | | | Fix compile problems with 64bit. These issues could cause corrupted address crashes. In the process, replaced some definitions to use more portable kernel types. Signed-off-by: Jim Lieb <lieb@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: otus: includecheck fix: drivers/staging/otus/usbdrv.hJaswinder Singh Rajput2009-09-151-4/+0
| | | | | | | | | | fix the following 'make includecheck' warning: drivers/staging/otus/usbdrv.h: linux/usb.h is included more than once. Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: serqt_usb2: fix qt_open parametersBill Pemberton2009-09-151-1/+1
| | | | | | | | The parameter list for qt_open() was from the old non usb-serial driver. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: udlfb: fix printk format warningRandy Dunlap2009-09-151-1/+1
| | | | | | | | | | Fix printk format warning: use %td for ptrdiff: drivers/staging/udlfb/udlfb.h:209: warning: format '%d' expects type 'int', but argument 3 has type 'long int' Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: rt2860: remove dependency on WIRELESS_EXT versionAlexander Beregalov2009-09-157-133/+13
| | | | | | | | | As the driver is in mainline now we can remove such dependencies. WIRELESS_EXT is 22 now. Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: rt2870sta interface namesMike Galbraith2009-09-153-6/+6
| | | | | | | | | | The rest of the known universe prefers wlanN for wireless interface names, to the point that some distro configuration tools, such as opensuse's Yast, don't even allow the user to enter a name, and simply pre-select "wlan". Signed-off-by: Mike Galbraith <efault@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: dst: correct error-handling codeJulia Lawall2009-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | dst_state_alloc returns an ERR_PTR value in an error case instead of NULL. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> @match exists@ expression x, E; statement S1, S2; @@ x = dst_state_alloc(...) ... when != x = E ( * if (x == NULL || ...) S1 else S2 | * if (x == NULL && ...) S1 else S2 ) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: ARRAY_SIZE changesStoyan Gaydarov2009-09-1529-34/+33
| | | | | | | | These changes were a direct result of using a semantic patch More information can be found at http://www.emn.fr/x-info/coccinelle/ Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: Correct use of ! and &Julia Lawall2009-09-152-6/+3
| | | | | | | | | | | | | | | | | Correct priority problem in the use of ! and &. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ expression E; constant C; @@ - !E & C + !(E & C) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: fix typos "man[ae]g?ment" -> "management"Uwe Kleine-König2009-09-158-12/+12
| | | | | | | | | | | This patch was generated by running git grep -E -l 'man[ae]g?ment' drivers/staging | xargs -r perl -p -i -e 's/\bman[ae]g?ment\b/management/g' Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Cc: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: usb-ip: vhci_hdc:Fix the returned error valueShan Wei2009-09-151-2/+2
| | | | | | | | | | | | Compared with other drivers, the "ret" should be nagative and returned. But in vhci_hdc, it always return 0; I dont't use the driver, and I'm not familiar with the code. Hope the patch is helpful. Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: cpc-usb: add one todo entryFelipe Balbi2009-09-151-0/+1
| | | | | | | | we need to get rid of those driver-specific error codes Signed-off-by: Felipe Balbi <me@felipebalbi.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: cpc-usb: convert comment style in cpcusb.hFelipe Balbi2009-09-151-1/+1
| | | | | | Signed-off-by: Felipe Balbi <me@felipebalbi.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: cpc-usb: convert comment style in cpc_int.hFelipe Balbi2009-09-151-4/+4
| | | | | | Signed-off-by: Felipe Balbi <me@felipebalbi.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: cpc-usb: convert comment style in cpc.hFelipe Balbi2009-09-151-271/+248
| | | | | | Signed-off-by: Felipe Balbi <me@felipebalbi.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: USB-IP code cleanupBrian G. Merrell2009-09-1512-337/+360
| | | | | | | | | | This includes fixes for all of the legit checkpatch.pl errors and warnings. I have also included several of the suggestions from the linux-kernel mailing list when the USB-IP code was first added. Signed-off-by: Brian G. Merrell <bgmerrell@novell.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: meilhaus: convert nested spin_lock_irqsave to spin_lockJulia Lawall2009-09-151-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If spin_lock_irqsave is called twice in a row with the same second argument, the interrupt state at the point of the second call overwrites the value saved by the first call. Indeed, the second call does not need to save the interrupt state, so it is changed to a simple spin_lock. The semantic match that finds this problem is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ expression lock1,lock2; expression flags; @@ *spin_lock_irqsave(lock1,flags) ... when != flags *spin_lock_irqsave(lock2,flags) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Cc: David Kiliani <mail@davidkiliani.de> Cc: Meilhaus Support <support@meilhaus.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: dream: Synaptics touchscreen: check that smbus is availablePavel Machek2009-09-151-0/+6
| | | | | | | | Check that SMBUS APIs are available in touchscreen driver. Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: dream: add support for input on GPIO pinsArve Hjønnevåg2009-09-157-0/+1253
| | | | | | | | | | | | | | Support for input devices connected to GPIO pins. This adds support for HTC Dream's keyboard and its trackball. Generic support already exists for keyboard on GPIO, but this one is more advanced because it can detect shadow key presses (and actually works with Dream :-). (It also contains Kconfig/Makefile changes, including some that were missing from previous commit. Sorry.) Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: Dream: separate Kconfig/Makefile into subdirectoryPavel Machek2009-09-152-6/+3
| | | | | | | | | | Separate Kconfig/Makefile glue from dream into subdirectory. I plan to add few more drivers, and changing staging/Makefile each time sounds like inviting conflicts. Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: dream, fix buf overflowJiri Slaby2009-09-151-1/+1
| | | | | | | | | | | In vfe_send_msg_no_payload there is a wrong struct vfe_message allocation. It allocates only sizeof(pointer to vfe_message) for a whole structure. Add a dereference to the sizeof to allocate sizeof(vfe_message). Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: dream: synaptics touchscreen for dream: documentationPavel Machek2009-09-151-0/+17
| | | | | | | | | This adds pointer to hardware documentation, and adds code comment from Arve. Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: HTC Dream: touchscreen: more cleanupsPavel Machek2009-09-151-121/+123
| | | | | | | | | | | This separates coefficient computation into separate function, so that main probe does not have 1001 variables, and is of a more reasonable size. Signed-off-by: Pavel Machek <pavel@ucw.cz> Cc: Arve Hjønnevåg <arve@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: HTC Dream: Cleanup Dream touchscreen driverPavel Machek2009-09-151-182/+180
| | | | | | | | | | | | | This is first part of touchscreen cleanups. I did not remove earlysuspend functionality for now (to help Google merge the changes). I mainly introduced helpers to reduce code duplication, and split huge functions into smaller ones. Signed-off-by: Pavel Machek <pavel@ucw.cz> Cc: Arve Hjønnevåg <arve@android.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: HTC Dream: touchscreen driver for stagingArve Hjønnevåg2009-09-152-0/+688
| | | | | | | | | | | | | | | | This adds support for synaptic touchscreen, used in HTC dream cellphone. This is original version from Arve, fixed only to compile; I do have cleaner version, but I broken something inside, and this will preserve authorship better. I originally tried to push the driver directly to input/touchscreen, but the driver has some issues with interrupt handling that are more difficult to fix than I expected at first. Signed-off-by: Arve Hjønnevåg <arve@android.com> Signed-off-by: Pavel Machek <pavel@ucw.cz>
* Staging: htc: Dream: limit Kconfig for only MSM platformsPavel Machek2009-09-151-0/+1
| | | | | | | | | | Limit SMD communication glue to MSM platform. It is closely tied to MSM architecture. Signed-off-by: Pavel Machek <pavel@ucw.cz> Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: update the TODO fileGreg Kroah-Hartman2009-09-151-3/+1
| | | | | | | | | | Remove a few items that have already been resolved. There are only a few checkpatch issues, they need to be resolved by larger code logic changes that are not "simple" changes. Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: Remove List.hBill Pemberton2009-09-153-265/+0
| | | | | | | | | List.h is no longer used and can be removed. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: remove use of internal list routines in RndisFilterBill Pemberton2009-09-151-11/+6
| | | | | | | | | | | The hv driver has it's own linked list routines. This removes them from RndisFilter.c Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: remove more usages of internal list routinesBill Pemberton2009-09-155-65/+55
| | | | | | | | | | | The hv driver has it's own linked list routines. This removes them from more places in hv. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: remove use of internal list routines in NetVscBill Pemberton2009-09-153-53/+32
| | | | | | | | | | | The hv driver has it's own linked list routines. This removes them from NetVsc and uses the kernels routines instead. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: Add Haiyang's email to the TODO fileHaiyang Zhang2009-09-151-2/+2
| | | | | | | | | Add Haiyang's email to the TODO file. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: remove function pointer typedefs from vmbus.hGreg Kroah-Hartman2009-09-155-12/+8
| | | | | | | | | | | It's amazing the hoops that people go through to make code work when they don't opensource the whole thing. Passing these types of function pointers around for no good reason is a mess, this needs to be unwound as everything is now in the open. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: remove PFN_CHANNEL_CALLBACKGreg Kroah-Hartman2009-09-153-6/+4
| | | | | | | | | | Come on people, it doesn't get simpler than this, why have a typedef for something so tiny... Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: remove function pointer typedefs from StorVscApi.hGreg Kroah-Hartman2009-09-151-12/+5
| | | | | | | | | | function pointer typedefs are allowed in the kernel, but only if they make sense, which they really do not here, as they are not passed around with any kind of frequency. So just spell them all out, it makes the code smaller and easier to understand overall. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: remove function pointer typedefs from NetVscApi.hGreg Kroah-Hartman2009-09-152-25/+9
| | | | | | | | | | function pointer typedefs are allowed in the kernel, but only if they make sense, which they really do not here, as they are not passed around with any kind of frequency. So just spell them all out, it makes the code smaller and easier to understand overall. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: remove function pointer typedefs from VmbusApi.hGreg Kroah-Hartman2009-09-152-99/+43
| | | | | | | | | | | function pointer typedefs are allowed in the kernel, but only if they make sense, which they really do not here, as they are not passed around with any kind of frequency. So just spell them all out, it makes the code smaller and easier to understand overall. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: rename struct NETVSC_DEVICEGreg Kroah-Hartman2009-09-153-35/+35
| | | | | | | | | | | | | The Linux kernel doesn't have all caps structures, we don't like to shout at our programmers, it makes them grumpy. Instead, we like to sooth them with small, rounded letters, which puts them in a nice, compliant mood, and makes them more productive and happier, allowing them more fufilling lives overall. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: coding style cleanup for NetVsc.cGreg Kroah-Hartman2009-09-151-655/+539
| | | | | | | Still a lot of long lines, but that's nothing I can fix up at this time Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: coding style cleanup for RndisFilter.cGreg Kroah-Hartman2009-09-151-400/+285
| | | | | | | | It's much better now. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: coding style cleanup for storvsc_drv.cGreg Kroah-Hartman2009-09-151-464/+470
| | | | | | | | Where's the hazard pay for cleaning up this mess... Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: coding style cleanups for vmbus_drv.cGreg Kroah-Hartman2009-09-151-541/+405
| | | | | | | Almost clean. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: warn the world of a bug in the release functionGreg Kroah-Hartman2009-09-151-0/+5
| | | | | | | | | | | | All device release functions need to do something, if not, it's a bug. By merely providing an "empty" release function, it gets the kernel to shut up, but that's not solving the problem at all. Stick a big fat WARN_ON(1); in there to get people's attention. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: coding style cleanup for Channel.cGreg Kroah-Hartman2009-09-151-479/+345
| | | | | | | | All clean now. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: coding style fixes for blkvsc_drv.cGreg Kroah-Hartman2009-09-151-532/+521
| | | | | | | | | There are still some very long lines, someone needs to unwind the logic there to resolve that. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: reorg StorVsc.cGreg Kroah-Hartman2009-09-151-266/+249
| | | | | | | | This gets rid of all of the forward declarations. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: coding style cleanups for StorVsc.cGreg Kroah-Hartman2009-09-151-424/+311
| | | | | | | | | Some one owes me a lot of beer, or a nice bottle of rum for all of this crud cleanup... Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: TODO: add some more itemsGreg Kroah-Hartman2009-09-151-0/+2
| | | | | | | Add List.h and RingBuffer.h removal items. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Staging: hv: reorg ChannelMgmt a bitGreg Kroah-Hartman2009-09-151-37/+24
| | | | | | | | | This gets rid of the unneeded typedef and the forward declarations, saving a bit of code file size. Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
OpenPOWER on IntegriCloud