GitHub/LineageOS/android_kernel_motorola_exynos9610.git
14 years agostaging: ti-st: fix kim platform device id
Pavan Savoy [Fri, 10 Sep 2010 19:58:55 +0000 (15:58 -0400)]
staging: ti-st: fix kim platform device id

Platform devices tend to have id as -1 when only 1 device exist and
a value >=0 when multiple devices exist, since we plan to store all
these platform devices if multiple exist, there was a requirement to
have id to be >=0.
The patch fixes this problem.

Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: use string native library
Andy Shevchenko [Wed, 15 Sep 2010 09:47:18 +0000 (12:47 +0300)]
staging: brcm80211: use string native library

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: use native ctype library
Andy Shevchenko [Wed, 15 Sep 2010 09:47:17 +0000 (12:47 +0300)]
staging: brcm80211: use native ctype library

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: usbip: resolved a space in a comment
Agustin March [Thu, 16 Sep 2010 18:12:03 +0000 (15:12 -0300)]
staging: usbip: resolved a space in a comment

Removed a space in a comments lines at #459

Signed-off-by: Agustin March <agustin.march@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: msm: Remove pr_<level> uses of KERN_<level>
Joe Perches [Sun, 12 Sep 2010 05:10:57 +0000 (22:10 -0700)]
staging: msm: Remove pr_<level> uses of KERN_<level>

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: keucr: fix keucr lost disconnect
Al Cho [Thu, 16 Sep 2010 03:51:48 +0000 (11:51 +0800)]
staging: keucr: fix keucr lost disconnect

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>
14 years agostaging: vt6656: Fixed indentation with spaces
Clelia V. Korol [Thu, 16 Sep 2010 18:00:19 +0000 (15:00 -0300)]
staging: vt6656: Fixed indentation with spaces

Fixed the last 5 lines, indented with spaces, replacing spaces with tabs.

Signed-off-by: Clelia V. Korol <cvkorol@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: vt6656: removed dummy errors like extra spaces
Ema Cuevas [Thu, 16 Sep 2010 18:06:38 +0000 (15:06 -0300)]
staging: vt6656: removed dummy errors like extra spaces

As reported by checkpatch.

Signed-off-by: Ema Cuevas <emacupk@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: vt6656: delete some parenthesis
matias [Thu, 16 Sep 2010 18:11:28 +0000 (15:11 -0300)]
staging: vt6656: delete some parenthesis

I remove parenthesis for a return variable, and also delete a space and tab the code line

Signed-off-by: matias <munozmatiasn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: vt6656: Space Added after definition of Variable MSG_LEVEL_INFO
Emanuel Mariano Ravera [Thu, 16 Sep 2010 18:11:41 +0000 (15:11 -0300)]
staging: vt6656: Space Added after definition of Variable MSG_LEVEL_INFO

Added an space after the definition of the variable MSG_LEVEL_INFO on line 43

Signed-off-by: Emanuel Mariano Ravera <ravera.emanuel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: vt6656: removed not required parentheses.
Diego H. Iglesias [Thu, 16 Sep 2010 18:14:18 +0000 (15:14 -0300)]
staging: vt6656: removed not required parentheses.

Removed not required parentheses in return statements.

Signed-off-by: Diego H. Iglesias <diegohi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: comedi: fix signess bug
Vasiliy Kulikov [Sun, 12 Sep 2010 18:56:35 +0000 (22:56 +0400)]
staging: comedi: fix signess bug

ai_count and ao_counter are unsigned, check for < 0 doesn't make sense.
Cast them to int.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: crystalhd: fix signed bug
Vasiliy Kulikov [Sun, 12 Sep 2010 18:56:51 +0000 (22:56 +0400)]
staging: crystalhd: fix signed bug

chd_dec_major is unsigned, so check chd_dec_major < 0 doesn't make sense.
Since it is used as signed, declare it as int.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: solo6010: fix signess bug
Vasiliy Kulikov [Sun, 12 Sep 2010 18:56:57 +0000 (22:56 +0400)]
staging: solo6010: fix signess bug

video_nr is unsigned, so check video_nr >= 0 doesn't make sense.
The only "negative" value may be -1, so explicitly check for it.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ST_BT depends on RFKILL
Randy Dunlap [Sat, 11 Sep 2010 23:00:12 +0000 (16:00 -0700)]
staging: ST_BT depends on RFKILL

Fix kconfig unmet dependency warning:

warning: (ST_BT && STAGING && !STAGING_EXCLUDE_BUILD && BT) selects TI_ST which has unmet direct dependencies (RFKILL)

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging/bcm: fix build for CONFIG_PM not enabled
Randy Dunlap [Tue, 14 Sep 2010 22:39:50 +0000 (15:39 -0700)]
staging/bcm: fix build for CONFIG_PM not enabled

Handle build case of CONFIG_PM not being enabled.

drivers/staging/bcm/InterfaceInit.c:280: error: 'struct usb_device' has no member named 'autosuspend_delay'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging/bcm: fix printk format warnings
Randy Dunlap [Tue, 14 Sep 2010 22:39:58 +0000 (15:39 -0700)]
staging/bcm: fix printk format warnings

Fix lots of printk format warnings in bcm.  Here is a sample of them:

drivers/staging/bcm/CmHost.c:1955: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'
drivers/staging/bcm/CmHost.c:1955: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
drivers/staging/bcm/CmHost.c:1955: warning: format '%x' expects type 'unsigned int', but argument 3 has type 'long unsigned int'
drivers/staging/bcm/LeakyBucket.c:85: warning: format '%d' expects type 'int', but argument 4 has type 'long int'
drivers/staging/bcm/LeakyBucket.c:85: warning: format '%d' expects type 'int', but argument 3 has type 'long int'
drivers/staging/bcm/LeakyBucket.c:85: warning: format '%d' expects type 'int', but argument 4 has type 'long int'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging/keucr: fix build when CONFIG_PM is not enabled
Randy Dunlap [Tue, 14 Sep 2010 22:41:41 +0000 (15:41 -0700)]
staging/keucr: fix build when CONFIG_PM is not enabled

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>
14 years agostaging/keucr: update TODO list and ask question about it
Randy Dunlap [Tue, 14 Sep 2010 22:41:48 +0000 (15:41 -0700)]
staging/keucr: update TODO list and ask question about it

Update keucr TODO with additional work items.

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Al Cho <acho@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ath6kl: use '%pM' format to print MAC address
Andy Shevchenko [Sat, 11 Sep 2010 14:17:05 +0000 (17:17 +0300)]
staging: ath6kl: use '%pM' format to print MAC address

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: octeon: use '%pM' format to print MAC address
Andy Shevchenko [Sat, 11 Sep 2010 14:17:08 +0000 (17:17 +0300)]
staging: octeon: use '%pM' format to print MAC address

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: otus: use '%pM' format to print MAC address
Andy Shevchenko [Sat, 11 Sep 2010 14:17:09 +0000 (17:17 +0300)]
staging: otus: use '%pM' format to print MAC address

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: rt2870: use '%pM' format to print MAC address
Andy Shevchenko [Sat, 11 Sep 2010 14:17:10 +0000 (17:17 +0300)]
staging: rt2870: use '%pM' format to print MAC address

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: rtl8712: use '%pM' format to print MAC address
Andy Shevchenko [Sat, 11 Sep 2010 14:17:11 +0000 (17:17 +0300)]
staging: rtl8712: use '%pM' format to print MAC address

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: cxt1e1: use '%pMF' format to print MAC address
Andy Shevchenko [Sat, 11 Sep 2010 14:17:07 +0000 (17:17 +0300)]
staging: cxt1e1: use '%pMF' format to print MAC address

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: vt6655: use '%pM' format to print MAC address
Andy Shevchenko [Sat, 11 Sep 2010 14:17:12 +0000 (17:17 +0300)]
staging: vt6655: use '%pM' format to print MAC address

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: wlags49_h2: use '%pM' format to print MAC address
Andy Shevchenko [Sat, 11 Sep 2010 14:17:13 +0000 (17:17 +0300)]
staging: wlags49_h2: use '%pM' format to print MAC address

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: rt2860: change plain format of mac address to %pM in *printf()
Andy Shevchenko [Sat, 11 Sep 2010 14:17:04 +0000 (17:17 +0300)]
staging: rt2860: change plain format of mac address to %pM in *printf()

There are many locations where MAC or BSSID is printed. The plain format
is used in such places. *printf() in kernel recognizes
%pM, %pMF and %pm format parameters to print out 6-byte array as MAC
address. This patch changes plain format to custom %pM which is widely
used in kernel.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: west bridge: pnand hal fixes
David Cross [Fri, 10 Sep 2010 23:57:56 +0000 (16:57 -0700)]
staging: west bridge: pnand hal fixes

This patch includes changing some defines, necessary for compilation
with the linux-next tree.

Signed-off-by: David Cross <david.cross@cypress.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: west bridge: cyasgadget, remove file system / vfs calls
David Cross [Fri, 10 Sep 2010 23:55:53 +0000 (16:55 -0700)]
staging: west bridge: cyasgadget, remove file system / vfs calls

This patch remove file system specific (fat_get_block) and vfs calls
from the cyasgadget driver. The current implementation expects user
space to write the file (open, seek to end, 1 byte write), followed by a
call to clear the dirty pages from the the page cache.

Signed-off-by: David Cross <david.cross@cypress.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: west bridge: block driver api fix
David Cross [Fri, 10 Sep 2010 23:52:56 +0000 (16:52 -0700)]
Staging: west bridge: block driver api fix

This patch contains an update for cyasblkdev_queue.c which is needed for
the kernel update from 2.6.35 to 2.6.36.

Signed-off-by: David Cross <david.cross@cypress.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: west bridge: Kconfig fix
David Cross [Fri, 10 Sep 2010 23:51:05 +0000 (16:51 -0700)]
Staging: west bridge: Kconfig fix

This patch fixes the currently broken Kconfig for west bridge by
introducing a dependency on a valid HAL Layer for the driver build.

Signed-off-by: David Cross <david.cross@cypress.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: comedi: fix macro coding style issue in adl_pci9111.c
Maurice Dawson [Fri, 10 Sep 2010 19:20:42 +0000 (20:20 +0100)]
Staging: comedi: fix macro coding style issue in adl_pci9111.c

This is a patch that fixes up, macros with multiple statements should be enclosed in a do - while loop, coding style issue in the adl_pci9111.c file found by the checkpatch.pl tool

Signed-off-by: Maurice Dawson <mauricedawson2699@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: batman-adv: check kmalloc() return value
Vasiliy Kulikov [Sun, 12 Sep 2010 21:21:56 +0000 (23:21 +0200)]
Staging: batman-adv: check kmalloc() return value

kmalloc() may fail, if so drop current packet.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
[sven.eckelmann@gmx.de: Removed new introduced deadlock]
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: batman-adv: removing redundant assignment of skb->dev
Marek Lindner [Sun, 12 Sep 2010 21:21:55 +0000 (23:21 +0200)]
Staging: batman-adv: removing redundant assignment of skb->dev

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: batman-adv: Add rcu TODO
Sven Eckelmann [Sun, 12 Sep 2010 21:21:54 +0000 (23:21 +0200)]
Staging: batman-adv: Add rcu TODO

Paul E. McKenney informed us that rcu is misused by leaking pointers to
rcu related elements outside read-side protected critical sections.

He also recommended that it should be checked against the rcu checklist.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: batman-adv: Remove currently unused gw_* datastructures
Sven Eckelmann [Sun, 12 Sep 2010 21:21:53 +0000 (23:21 +0200)]
Staging: batman-adv: Remove currently unused gw_* datastructures

gw_list_lock, gw_list and curr_gw are currently unused members of struct
bat_priv. They will be readded when gateway support is really
implemented.

Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: batman-adv: Always synchronize rcu's on module shutdown
Linus Lüssing [Sun, 12 Sep 2010 21:21:52 +0000 (23:21 +0200)]
Staging: batman-adv: Always synchronize rcu's on module shutdown

During the module shutdown procedure in batman_exit(), a rcu callback is
being scheduled (batman_exit -> hardif_remove_interfaces ->
hardif_remove_interfae -> call_rcu). However, when the kernel unloads
the module, the rcu callback might not have been executed yet, resulting
in a "unable to handle kernel paging request" in __rcu_process_callback
afterwards, causing the kernel to freeze.

The synchronize_net and synchronize_rcu in mesh_free are currently
called before the call_rcu in hardif_remove_interface and have no real
effect on it.

Therefore, we should always flush all rcu callback functions scheduled
during the shutdown procedure using synchronize_net. The call to
synchronize_rcu can be omitted because synchronize_net already calls it.

Signed-off-by: Linus Lüssing <linus.luessing@web.de>
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: sca3000 convert byte order of ring buffer data
Manuel Stahl [Thu, 9 Sep 2010 15:40:11 +0000 (17:40 +0200)]
staging: iio: sca3000 convert byte order of ring buffer data

Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: sca3000 fix sca3000_[show,store]_ring_bpse
Manuel Stahl [Thu, 9 Sep 2010 15:40:10 +0000 (17:40 +0200)]
staging: iio: sca3000 fix sca3000_[show,store]_ring_bpse

Signed-off-by: Manuel Stahl <manuel.stahl@iis.fraunhofer.de>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: ak8975: Add ak8975 magnetometer sensor
Andrew Chew [Thu, 9 Sep 2010 05:02:17 +0000 (22:02 -0700)]
staging: iio: ak8975: Add ak8975 magnetometer sensor

This is for the Asahi Kasei AK8975 3-axis magnetometer.  It resides within
the magnetometer section of the IIO subsystem, and implements the raw
magn_x,y,z_raw attributes, as well as magn_x,y,z_scale attributes for
converting to Gauss.

Changed to use the magn_x,y,z_scale attributes, and made those attributes
give the scale factor to conert to Gauss.  Also applied more fixes from
feedback.

Keeping mode as an unsigned long.  I'm going to add proper power management
at some point anyway, which would deprecate this attribute.

Signed-off-by: Andrew Chew <achew@nvidia.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: iio: Change GAIN macros to SCALE.
Andrew Chew [Thu, 9 Sep 2010 05:02:16 +0000 (22:02 -0700)]
staging: iio: Change GAIN macros to SCALE.

Per email exchange with Jonathan Cameron, GAIN should instead be SCALE, to
be consistent with documentation.

Resending, since this goes with the 2/2 patch.

Signed-off-by: Andrew Chew <achew@nvidia.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: hv: Convert vmbus driver interface function pointer table to constant
Haiyang Zhang [Wed, 8 Sep 2010 20:29:45 +0000 (20:29 +0000)]
staging: hv: Convert vmbus driver interface function pointer table to constant

Convert vmbus driver interface function pointer table to constant
The vmbus interface functions are assigned to a constant - vmbus_ops.

Because the vmbus interface function pointer table is converted to a
constant variable -- vmbus_ops, the function GetChannelInterface(),
VmbusGetChannelInterface() and pointer GetChannelInterface are no longer
in use. The deprecated function's work is done by the initialization of
the newly added constant variable vmbus_ops.

I created the new constant variable vmbus_ops and removed the deprecated
function pointer GetChannelInterface in one patch.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix remaining checkpatch errors.
Jason Cooper [Tue, 14 Sep 2010 13:45:51 +0000 (09:45 -0400)]
staging: brcm80211: fix remaining checkpatch errors.

Remaining errors are due to the use of typedefs.  They should dissappear
once the typedefs get cleaned up.

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: trailing whitespace."
Jason Cooper [Tue, 14 Sep 2010 13:45:50 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: trailing whitespace."

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: spaces required around that ..."
Jason Cooper [Tue, 14 Sep 2010 13:45:49 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: spaces required around that ..."

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: spaces prohibited around that ':' ..."
Jason Cooper [Tue, 14 Sep 2010 13:45:48 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: spaces prohibited around that ':' ..."

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: space required before that ..."
Jason Cooper [Tue, 14 Sep 2010 13:45:47 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: space required before that ..."

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: space required after that ..."
Jason Cooper [Tue, 14 Sep 2010 13:45:46 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: space required after that ..."

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: space required after that close brace"
Jason Cooper [Tue, 14 Sep 2010 13:45:45 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: space required after that close brace"

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: space prohibited before ...close square bracket"
Jason Cooper [Tue, 14 Sep 2010 13:45:44 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: space prohibited before ...close square bracket"

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: space prohibited after that ..."
Jason Cooper [Tue, 14 Sep 2010 13:45:43 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: space prohibited after that ..."

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: need consistent spacing around '*'"
Jason Cooper [Tue, 14 Sep 2010 13:45:42 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: need consistent spacing around '*'"

This patch fixes the real errors.  The rest are caused by typedefs
which will be fixed in a later patch.

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix 'ERROR: "(foo*)" should be "(foo *)"'
Jason Cooper [Tue, 14 Sep 2010 13:45:41 +0000 (09:45 -0400)]
staging: brcm80211: fix 'ERROR: "(foo*)" should be "(foo *)"'

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: Macros w/ mult. statements ... do - while loop"
Jason Cooper [Tue, 14 Sep 2010 13:45:40 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: Macros w/ mult. statements ... do - while loop"

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: Macros w/ complex values ... parenthesis"
Jason Cooper [Tue, 14 Sep 2010 13:45:39 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: Macros w/ complex values ... parenthesis"

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: do not initialise statics to 0 or NULL"
Jason Cooper [Tue, 14 Sep 2010 13:45:38 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: do not initialise statics to 0 or NULL"

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: do not initialise globals to 0 or NULL"
Jason Cooper [Tue, 14 Sep 2010 13:45:37 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: do not initialise globals to 0 or NULL"

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: while should follow close brace '}'"
Jason Cooper [Tue, 14 Sep 2010 13:45:36 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: while should follow close brace '}'"

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: that open brace { ... prev line"
Jason Cooper [Tue, 14 Sep 2010 13:45:35 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: that open brace { ... prev line"

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: trailing statements should be on next line"
Jason Cooper [Tue, 14 Sep 2010 13:45:34 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: trailing statements should be on next line"

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: do not use assignment in if condition"
Jason Cooper [Tue, 14 Sep 2010 13:45:33 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: do not use assignment in if condition"

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: return is not a function, paren..."
Jason Cooper [Tue, 14 Sep 2010 13:45:32 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: return is not a function, paren..."

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix "ERROR: open brace '{' following function dec..."
Jason Cooper [Tue, 14 Sep 2010 13:45:31 +0000 (09:45 -0400)]
staging: brcm80211: fix "ERROR: open brace '{' following function dec..."

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: fix 'ERROR: "foo * bar" should be "foo *bar"'
Jason Cooper [Tue, 14 Sep 2010 13:45:30 +0000 (09:45 -0400)]
staging: brcm80211: fix 'ERROR: "foo * bar" should be "foo *bar"'

Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: Fix URLs for firmware files.
Henry Ptasinski [Sat, 11 Sep 2010 16:44:09 +0000 (09:44 -0700)]
staging: brcm80211: Fix URLs for firmware files.

Signed-off-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: use '%pM' format to print MAC address
Andy Shevchenko [Mon, 13 Sep 2010 08:40:27 +0000 (11:40 +0300)]
staging: brcm80211: use '%pM' format to print MAC address

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Nohee Ko <noheek@broadcom.com>
Cc: linux-wireless@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: Add contact info to TODO list.
Henry Ptasinski [Thu, 9 Sep 2010 18:53:33 +0000 (11:53 -0700)]
staging: brcm80211: Add contact info to TODO list.

Signed-off-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: brcm80211: Fix some initialisation failure paths
Ben Hutchings [Fri, 10 Sep 2010 00:38:18 +0000 (01:38 +0100)]
staging: brcm80211: Fix some initialisation failure paths

Initialise wl_info::tasklet early so that it's safe to tasklet_kill()
it in wl_free().

Remove assertions from wl_free() that may not be true in case of
initialisation failure.

Call wl_release_fw() in case of failure after wl_request_fw().
Don't rely on wl_firmware::fw_cnt in wl_release_fw().

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Henry Ptasinski <henryp@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: fix Makefile so broadcom driver will actually build.
Greg Kroah-Hartman [Thu, 9 Sep 2010 06:14:18 +0000 (23:14 -0700)]
Staging: fix Makefile so broadcom driver will actually build.

It would be nice if people tested their patches before sending
them to me...

Cc: Henry Ptasinski <henryp@broadcom.com>
Cc: Brett Rudley <brudley@broadcom.com>
Cc: Nohee Ko <noheek@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: Add initial release of brcm80211 - Broadcom 802.11n wireless LAN driver.
Henry Ptasinski [Thu, 9 Sep 2010 04:04:42 +0000 (21:04 -0700)]
Staging: Add initial release of brcm80211 - Broadcom 802.11n wireless LAN driver.

Signed-off-by: Henry Ptasinski <henryp@broadcom.com>
Cc: Brett Rudley <brudley@broadcom.com>
Cc: Nohee Ko <noheek@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: vt6656: use ARRAY_SIZE macro in channel.c
Nikitas Angelinas [Wed, 8 Sep 2010 21:27:55 +0000 (22:27 +0100)]
Staging: vt6656: use ARRAY_SIZE macro in channel.c

Replace (sizeof(ChannelRuleTab) / sizeof(ChannelRuleTab[0])) with
ARRAY_SIZE(ChannelRuleTab) in drivers/staging/vt6656/channel.c

Signed-off-by: Nikitas Angelinas <nikitasangelinas@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: comedi: fix space coding style issue in adl_pci9111.c
Maurice Dawson [Wed, 8 Sep 2010 18:15:46 +0000 (19:15 +0100)]
Staging: comedi: fix space coding style issue in adl_pci9111.c

This is a patch to the adl_pci9111.c file that fixes up multiple please,
no space for starting a line warnings, found by the checkpatch.pl tool

Signed-off-by: Maurice Dawson <mauricedawson2699@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ath6kl: Eliminating the symlink to 2.0 header files
Vipin Mehta [Wed, 8 Sep 2010 22:19:48 +0000 (15:19 -0700)]
staging: ath6kl: Eliminating the symlink to 2.0 header files

Moving the AR6002 hw 2.0 specific register definitions files from
the hw.0 directory to a new directory, 'hw' within hw2.0.

Signed-off-by: Vipin Mehta <vmehta@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rtl8192e: Less verbose function headers
Mike McCormack [Wed, 8 Sep 2010 13:05:21 +0000 (22:05 +0900)]
Staging: rtl8192e: Less verbose function headers

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rtl8192e: Fix indent in some places
Mike McCormack [Wed, 8 Sep 2010 13:05:09 +0000 (22:05 +0900)]
Staging: rtl8192e: Fix indent in some places

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rtl8192e: Remove some redundant comments
Mike McCormack [Wed, 8 Sep 2010 13:04:57 +0000 (22:04 +0900)]
Staging: rtl8192e: Remove some redundant comments

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rtl8192e: Remove extern and redundant declarations
Mike McCormack [Wed, 8 Sep 2010 13:04:45 +0000 (22:04 +0900)]
Staging: rtl8192e: Remove extern and redundant declarations

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rtl8192e: Remove function with no effect
Mike McCormack [Wed, 8 Sep 2010 13:04:34 +0000 (22:04 +0900)]
Staging: rtl8192e: Remove function with no effect

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rtl8192e: Remove unused macros
Mike McCormack [Wed, 8 Sep 2010 13:04:20 +0000 (22:04 +0900)]
Staging: rtl8192e: Remove unused macros

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rtl8192e: Remove some commented out code
Mike McCormack [Wed, 8 Sep 2010 13:04:10 +0000 (22:04 +0900)]
Staging: rtl8192e: Remove some commented out code

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rtl8192e: Remove function name comments at end of functions
Mike McCormack [Wed, 8 Sep 2010 13:03:59 +0000 (22:03 +0900)]
Staging: rtl8192e: Remove function name comments at end of functions

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rtl8192e: Remove some redundant code
Mike McCormack [Wed, 8 Sep 2010 13:03:30 +0000 (22:03 +0900)]
Staging: rtl8192e: Remove some redundant code

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: Beeceem USB Wimax driver
Stephen Hemminger [Wed, 8 Sep 2010 21:46:36 +0000 (14:46 -0700)]
staging: Beeceem USB Wimax driver

The Sprint 4G network uses a Wimax dongle with Beecem
chipset. The driver is typical of out of tree drivers, but
maybe useful for people, and the hardware is readily available.

Here is a staging ready version (i.e warts and all)

0. Started with Rel_5.2.7.3P1_USB from Sprint4GDeveloperPack-1.1
1. Consolidated files in staging
2. Remove Dos cr/lf
3. Remove unnecessary ioctl from usbbcm_fops

Applied patches that were in the developer pack, surprising
there were ones for 2.6.35 already.

This is compile tested only, see TODO for what still needs
to be done.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: keucr: fix up some coding style issues in the .h files
Greg Kroah-Hartman [Wed, 8 Sep 2010 09:47:47 +0000 (02:47 -0700)]
Staging: keucr: fix up some coding style issues in the .h files

This resolves a few of the coding style issues in the .h files
for this driver.  It doesn't get all of them by far, but it's a
good start.

Cc: Al Cho <acho@novell.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: add USB ENE card reader driver
Al Cho [Wed, 8 Sep 2010 07:42:32 +0000 (00:42 -0700)]
Staging: add USB ENE card reader driver

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>
14 years agostaging: xgifb: Removes unnecesary log
Javier Martinez Canillas [Wed, 8 Sep 2010 04:05:40 +0000 (00:05 -0400)]
staging: xgifb: Removes unnecesary log

This patch fixes a compile warning removing an unnecessary log message.
I redo the patch against today linux-next.

Thanks a lot

Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging : xgifb: Removes compilation conditionals
Javier Martinez Canillas [Wed, 8 Sep 2010 04:07:57 +0000 (00:07 -0400)]
staging : xgifb: Removes compilation conditionals

This patch fixes a compilation warning in today linux-next
removing some compilation conditionals.

Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ath6kl: Fixing a compilation error introduced by commit ec53d6123bea9f69887f...
Vipin Mehta [Wed, 8 Sep 2010 00:06:50 +0000 (17:06 -0700)]
staging: ath6kl: Fixing a compilation error introduced by commit ec53d6123bea9f69887f194b5d4294a43292120d.

Signed-off-by: Vipin Mehta <vmehta@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: ath6kl: use native methods from kernel library
Andy Shevchenko [Tue, 7 Sep 2010 15:20:22 +0000 (18:20 +0300)]
staging: ath6kl: use native methods from kernel library

There are already implemented methods such hex_to_bin() or isxdigit() in
the kernel. Let's use them.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Acked-by: Vipin Mehta <Vipin.Mehta@Atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: rtl8712: throw away custom hex_to_bin()
Andy Shevchenko [Tue, 7 Sep 2010 15:20:21 +0000 (18:20 +0300)]
staging: rtl8712: throw away custom hex_to_bin()

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: xgifb: revert a warning fix and resolve it properly
Greg Kroah-Hartman [Wed, 8 Sep 2010 08:49:45 +0000 (01:49 -0700)]
Staging: xgifb: revert a warning fix and resolve it properly

Jiri pointed out that the previous compiler warning fix was incorrect as
the compiler was properly saying that the variable was not being set.
This was due to a #define commenting out all of the logic in the
function.

This patch reverts Javier's previous one, and properly fixes the issue
by making the function actually doing something.

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: otus: removes global variable initialization to 0 in wwrap.c
Prashant P. Shah [Tue, 7 Sep 2010 13:14:50 +0000 (18:44 +0530)]
Staging: otus: removes global variable initialization to 0 in wwrap.c

This is a patch to the wwrap.c file that removes the initialization
of global variable 'smp_kevent_Lock' to 0

Signed-off-by: Prashant P. Shah <pshah.mumbai@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: Bulk convert the semaphore mess
Thomas Gleixner [Tue, 7 Sep 2010 14:33:47 +0000 (14:33 +0000)]
staging: Bulk convert the semaphore mess

init_MUTEX(_LOCKED) and DECLARE_MUTEX are going away. Bulk convert
staging users.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: xgifb: Initialize uninitialized variables
Javier Martinez Canillas [Tue, 7 Sep 2010 05:34:05 +0000 (01:34 -0400)]
staging: xgifb: Initialize uninitialized variables

Current patch solves compilation warnings in staging/xgifb for using
possibly uninitialized variables.

Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: xgifb: fixed many style issues in XGI_main_26.c
Prashant P. Shah [Mon, 6 Sep 2010 12:04:26 +0000 (17:34 +0530)]
Staging: xgifb: fixed many style issues in XGI_main_26.c

This is a patch to the XGI_main_26 file that fixes many style
issues found by the checkpatch.pl tool.
- extra spaces
- invalid code indent
- extra braces
- invalid comment style

Signed-off-by: Prashant P. Shah <pshah.mumbai@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: rt2860: Fix brace coding style issue
Greg Kroah-Hartman [Mon, 6 Sep 2010 03:55:55 +0000 (20:55 -0700)]
Staging: rt2860: Fix brace coding style issue

This fixes a single brace issue in the rt_linux.c file.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: udlfb: fix checkpatch and style
Bernie Thompson [Mon, 6 Sep 2010 01:29:56 +0000 (18:29 -0700)]
staging: udlfb: fix checkpatch and style

Fix warnings detected by tools

Signed-off-by: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agostaging: udlfb: fix incorrect fb_defio implementation for multiple framebuffers
Bernie Thompson [Mon, 6 Sep 2010 01:28:29 +0000 (18:28 -0700)]
staging: udlfb: fix incorrect fb_defio implementation for multiple framebuffers

Fix fb_defio bug in udlfb for multiple framebuffers

Previously when using fb_defio with multiple DisplayLink attached displays
udlfb incorrectly used a shared datastructure where it needed to have
one per fb_info struct. This was completely broken and caused all kinds of
problems, including rendering to one framebuffer affecting others.

Signed-off-by: Bernie Thompson <bernie@plugable.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
14 years agoStaging: cxt1e1: Kconfig: SBE_PMCC4_NCOMM can not be compiled as module, adjust help...
Michael Prokop [Sun, 5 Sep 2010 21:29:32 +0000 (23:29 +0200)]
Staging: cxt1e1: Kconfig: SBE_PMCC4_NCOMM can not be compiled as module, adjust help description

The Kconfig description for CONFIG_SBE_PMCC4_NCOMM says:

  If you have purchased this optional support you must say Y or M
  here to allow the driver to operate with the NCOMM product.

This is not correct as it can not be built as module,
this patch updates the description accordingly.

Signed-off-by: Michael Prokop <mika@grml.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>