Joe Perches
f8628a47ba
staging: Convert __FUNCTION__ to __func__
...
Use the normal mechanism for emitting a function name.
Signed-off-by: Joe Perches <joe@perches.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 11:05:07 -07:00
Vitaly Osipov
91d435fe36
staging: rtl8712: remove _malloc()
...
This patch removes all usage of _malloc() and the function itself. Most
uses are straightforward replacements by kmalloc(..., GFP_ATOMIC),
because this was the definition of _malloc(). In a few places it
was possible to use kzalloc() or memdup_user.
A further improvement would be to replace GFP_ATOMIC with GFP_KERNEL
where possible.
Verified by compilation only.
Initial replacement done by running a Coccinelle script along the lines
of:
@@
type T;
expression E;
identifier V;
@@
- V = (T) _malloc(E);
+ V = kmalloc(E, GFP_ATOMIC);
@@
expression E, E1;
@@
- E1 = _malloc(E);
+ E1 = kmalloc(E, GFP_ATOMIC);
Signed-off-by: Vitaly Osipov <vitaly.osipov@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 11:04:44 -07:00
David Matlack
811e843ddf
staging: slicoss: clean up use of dev_err
...
First, don't print pci device information or driver prefixes, this
is already printed by dev_err. Next, don't report error messages
via dev_err when the failing function already reports all errors
via dev_err.
Signed-off-by: David Matlack <matlackdavid@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:59:53 -07:00
David Matlack
17dd4338f3
staging: slicoss: remove private netdev list
...
Remove the private linked list of netdev structs. This list isn't
being used anyway.
This patch has no noticable effect.
Signed-off-by: David Matlack <matlackdavid@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:59:53 -07:00
Greg DeAngelis
35b8dfd411
staging: lustre: Fixed warnings about using 0 as NULL ptr
...
Fixed a bunch of warnings pointed out by sparse about using 0 to
represent a NULL pointer.
Signed-off-by: Greg DeAngelis <gdeangel@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:59:52 -07:00
Stephen Boyd
ffd07de65e
staging/mt29f_spinand: Terminate of match table
...
Failure to terminate this match table can lead to boot failures
depending on where the compiler places the match table.
Cc: Kamlakant Patel <kamlakant.patel@broadcom.com >
Cc: Mona Anonuevo <manonuevo@micron.com >
Cc: linux-mtd@lists.infradead.org
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org >
Cc: stable <stable@vger.kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:59:52 -07:00
Dominique van den Broeck
2d53426be7
staging: panel: (coding style) Multiple assignments
...
Style-only modifications to comply with checkpatch.pl --strict --file.
. Breaks down compound assignments.
Signed-off-by: Dominique van den Broeck <domdevlin@free.fr >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:59:52 -07:00
Malcolm Priestley
fd4859f61b
staging: vt6656: CARDvCalculateOFDMRParameter fix indentation rsv_time
...
In patch
staging: vt6656 camel case clean up CARDvCalculateOFDMRParameter
rsv_time is indented incorrectly.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:26 -07:00
Malcolm Priestley
1efb8facf8
staging: vt6656: camel case and clean up CARDvSetBSSMode
...
camel case changes
pDevice -> priv
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:26 -07:00
Malcolm Priestley
f320314435
staging: vt6656: camel case clean up CARDbRadioPowerOn
...
camel case changes
pDevice -> priv
bResult -> ret
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:26 -07:00
Malcolm Priestley
07deb71093
staging: vt6656: camel case clean up CARDbRadioPowerOff
...
camel case changes
pDevice -> priv
bResult -> ret
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:25 -07:00
Malcolm Priestley
8b515de7a7
staging: vt6656: camel case clean up CARDvUpdateNextTBTT
...
camel case changes
pDevice -> priv
qwTSF -> tsf
wBeaconInterval -> beacon_interval
pbyData -> data
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:25 -07:00
Malcolm Priestley
414475f6fd
staging: vt6656: camel case and clean up CARDvSetFirstNextTBTT
...
camel case changes
pDevice -> priv
wBeaconInterval -> beacon_interval
qwNextTBTT -> next_tbtt
pbyData -> data
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:25 -07:00
Malcolm Priestley
5f4dfb66e6
staging: vt6656: CARDqGetNextTBTT remove camel case
...
qwTSF -> tsf
wBeaconInterval -> beacon_interval
uBeaconInterval -> beacon_int
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:25 -07:00
Malcolm Priestley
e151e478fd
staging: vt6656: CARDbClearCurrentTSF remove camel case
...
pDevice -> priv
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:25 -07:00
Malcolm Priestley
2092dfa4ef
staging: vt6656: CARDbGetCurrentTSF remove camel case
...
pDevice -> priv
pqwCurrTSF -> current_tsf
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:25 -07:00
Malcolm Priestley
302361d475
staging: vt6656: camel case and clean up CARDvAdjustTSF
...
camel case changes
pDevice -> priv
byRxRate -> rx_rate
qwBSSTimestamp -> time_stamp
qwLocalTSF -> local_tsf
qwTSFOffset -> tsf_offset
pbyData -> data
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:24 -07:00
Malcolm Priestley
3fd2a69c6e
staging: vt6656: CARDqGetTSFOffset remove camel case
...
camel case changes
byRxRate -> rx_rate
qwTSF1 -> tsf1
qwTSF2 -> tsf2
qwTSFOffset -> tsf_offset
wRxBcnTSFOffst -> rx_bcn_offset
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:24 -07:00
Malcolm Priestley
1f44238f6c
staging: vt6656: camel case and cleanup CARDbyGetPktType
...
camel case changes
pDevice -> priv
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:24 -07:00
Malcolm Priestley
de0eb9ef70
staging: vt6656: camel case clean up CARDbIsOFDMinBasicRate
...
camel case change
pDevice -> priv
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:24 -07:00
Malcolm Priestley
0b596b2a70
staging: vt6656: Convert remaining locks to spin_lock_irqsave.
...
Convert all remaining locks to spin_lock_irqsave and
spin_unlock_irqrestore
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-25 10:58:24 -07:00
Greg Kroah-Hartman
588079342e
Merge tag 'iio-for-3.16c' of git://git.kernel.org/pub/scm/linux/kernel/git/jic23/iio into staging-next
...
Jonathan writes:
Third round of new stuff for IIO in the 3.16 cycle.
This (rather late) set consists only of fixes to patches earlier in the
cycle or minor fixes for other problems (such as randconfig build issues
picked up by Arnd). I've included the general minor fixes here as it is
very late in the current cycle and they can all wait for the merge window.
* Recent change to hid-sensors introduced a possible infinite loop due to a
typo. In the same series, a report interval unit read was added but in the
case where the hardware doesn't support it a value of 0 would lead to some
nasty issues. The patch sets it to the specified default of msecs.
* Anon inodes were used by IIO without being explicitly selected. This has
been true for a long time so it clearly only effects rather unusual
configurations (rand configs)
* at91 requires the input subsytem but this wasn't explicity in the Kconfig.
* A couple of parts supported by the max1363 driver were using the wrong
iio_chan_spec arrays and hence would missreport their bit depths. This has
been there a long time and was never right so isn't a regression.
2014-05-25 10:56:30 -07:00
Toralf Förster
34683a5c6e
fix format string missmatch in staging/iio/Documentation/iio_utils.h
...
spotted by cppcheck
Signed-off-by: Toralf Förster <toralf.foerster@gmx.de >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
2014-05-25 12:09:37 +01:00
Jonathan Cameron
a91a73c8b3
iio:adc:max1363 incorrect resolutions for max11604, max11605, max11610 and max11611.
...
Cc: Stable@vger.kernel.org >
Reported-by: Erik Habbinga <Erik.Habbinga@schneider-electric.com >
Signed-off-by: Jonathan Cameron <jic23@kernel.org >
Acked-by: Hartmut Knaack <knaack.h@gmx.de >
2014-05-25 12:06:25 +01:00
Greg Kroah-Hartman
c4a6ca9743
Revert "staging: r8188eu: Add support for Dlink DWA-121 802.11n Wireless N 150 Pico Adapter"
...
This reverts commit 599a2c02a7 .
Larry writes:
This patch should be dropped. The 0x2001:0x3308 device is an
RTL8188CU, not RTL8188EU. As a result, it is already in the USB
device tables.
Cc: Larry Finger <Larry.Finger@lwfinger.net >
Cc: Kim Nylund <kim@pratsam.com >
Cc: stable <stable@vger.kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 13:01:06 -07:00
Matthias Beyer
1808bc67b1
Staging: bcm: Shortened prototype for GetNextTargetBufferLocation()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:39 +09:00
Matthias Beyer
3fdf44ca2a
Staging: bcm: Shortened lines in SearchClsid()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:39 +09:00
Matthias Beyer
3563e4ee9c
Staging: bcm: Shortened lines in deleteSFBySfid()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:39 +09:00
Matthias Beyer
e61f63557b
Staging: bcm: Shortened lines in CopyIpAddrToClassifier()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:38 +09:00
Matthias Beyer
780eb92c85
Staging: bcm: Replaced member accessing by variable
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:38 +09:00
Matthias Beyer
d52fe04a64
Staging: bcm: Shortened lines and replaced member accessing in CopyIpAddrToClassifier()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:38 +09:00
Matthias Beyer
eb8d0c9195
Staging: bcm: Shortened lines in CopyClassifierRuleToSF()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:38 +09:00
Matthias Beyer
732f1eee33
Staging: bcm: Replaced member accessing with variable
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:38 +09:00
Matthias Beyer
e8a9447780
Staging: bcm: Shortened lines in DeleteClassifierRuleFromSF()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:38 +09:00
Matthias Beyer
a03420b622
Staging: bcm: Shortened line in DeleteAllClassifiersForSF()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:37 +09:00
Matthias Beyer
ad9af0801d
Staging: bcm: Shortened lines in CopyToAdapter()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:37 +09:00
Matthias Beyer
7d4e910462
Staging: bcm: Replaced struct member accessing with variable
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:37 +09:00
Matthias Beyer
efd2ee6d5a
Staging: bcm: Outsourced PHS rule applying
...
This patch outsources the big PHS-rule-applying code chunk into a
function.
It also replaces member accessing by using variables.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:37 +09:00
Matthias Beyer
5c2c68d01b
Staging: bcm: Shortened some lines in DumpCmControlPacker()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:37 +09:00
Matthias Beyer
500501fad6
Staging: bcm: Replaced long member-accessing
...
This patch replaces long object->member.member foo by variable useage.
Increases the reading experience a lot by introducing only one variable
(as it decreases the whoa-wall-of-text experience).
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:37 +09:00
Matthias Beyer
ba3d0ee976
Staging: bcm: Shortened lines in RestoreSFParam()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:36 +09:00
Matthias Beyer
b9e9c27410
Staging: bcm: Shortened lines in StoreSFParam()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:36 +09:00
Matthias Beyer
c61f404478
Staging: bcm: Shortened lines in StoreCmControlResponseMessage()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:36 +09:00
Matthias Beyer
f61d1d554d
Staging: bcm: Shortened lines in RestoreCmControlResponseMessage()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:36 +09:00
Matthias Beyer
ae6586f5de
Staging: bcm: Shortened lines in SetupTargetDsxBuffers()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:36 +09:00
Matthias Beyer
0e5129185a
Staging: bcm: Shortenend lines in GetNextTargetBufferLocation()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:35 +09:00
Matthias Beyer
2ad5c499b9
Staging: bcm: Shortened line
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:35 +09:00
Matthias Beyer
cdc299b7a5
Staging: bcm: Simplified by using variables
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:35 +09:00
Matthias Beyer
311cb0786a
Staging: bcm: Outsourced restoring of endianess for ip adresses
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:35 +09:00
Matthias Beyer
15bba866c7
Staging: bcm: Shortened lines in get_dsx_sf_data_to_application()
...
Signed-off-by: Matthias Beyer <mail@beyermatthias.de >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2014-05-24 07:26:35 +09:00