aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm (follow)
AgeCommit message (Collapse)AuthorFilesLines
2013-08-30Staging:BCM:DDRInit.c:Renaming __FUNCTION__Paul McQuade1-27/+27
__Function__ gets renamed with __func__ Signed-Off-By: Paul McQuade <paulmcquad@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-08-30staging: bcm: remove Version.h file.navin patidar3-33/+3
many of the macros defined in Version.h are not being used, so we can remove the file. Signed-off-by: navin patidar <navinp@cdac.in> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-08-23staging: bcm: Fix typo in commentsMasanari Iida3-3/+3
Correct spelling typo in staging/bcm Signed-off-by: Masanari Iida <standby24x7@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-29Staging: bcm: LeakyBucket: Fixed a pointer asterisk placement issueLilis Iskandar1-1/+1
Fixed a pointer asterisk placement issue Signed-off-by: Lilis Iskandar <veeableful@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-29Staging: bcm: LeakyBucket: Fixed code indent issuesLilis Iskandar1-3/+3
Fixed code indent issues Signed-off-by: Lilis Iskandar <veeableful@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-29Staging: bcm: LeakyBucket: Fixed C99 commentsLilis Iskandar1-7/+9
Fixed C99 comments Signed-off-by: Lilis Iskandar <veeableful@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-29Staging: bcm: LeakyBucket: Fixed brace issuesLilis Iskandar1-79/+39
Fixed brace issues Signed-off-by: Lilis Iskandar <veeableful@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-29Staging: bcm: LeakyBucket: Fixed spacing/tabing issuesLilis Iskandar1-85/+85
This one fixes spacing/tabbing issues. Signed-off-by: Lilis Iskandar <veeableful@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-07-23Staging: bcm: Qos: Fix some coding style issuesLilis Iskandar1-269/+269
Fixed spacing/tabs issues that were found using checkpatch. Signed-off-by: Lilis Iskandar <veeableful@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-21Staging: bcm: fix checkpatch errors and warnings in Version.hSeverin Gsponer1-7/+1
This patch change the comment style to C89 and removes a unnecessary line. Signed-off-by: Severin Gsponer <svgsponer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-21Staging: bcm: Change comment style to C89 in vendorspecificextn.cSeverin Gsponer1-101/+97
Changed the comment style to C89 in vendorspecificextn.c. Found with checkpatch.pl Signed-off-by: Severin Gsponer <svgsponer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-16Staging: bcm: Fixed warning 'space required before the open parenthesis '(''.Tülin İzer1-24/+24
This patch fixes warning 'space required before the open parenthesis '('' found by checkpacth.pl in driver bcm. Signed-off-by: Tülin İzer <tulinizer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-16Staging: bcm: Fixed error 'else should follow close brace '}''.Tülin İzer1-10/+5
This patch fixes error 'else should follow close brace '}'' found by checkpatch in driver bcm. Signed-off-by: Tülin İzer <tulinizer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-16Staging: bcm: Fixed warning 'braces {} are not necessary for single statement blocks'.Tülin İzer1-6/+3
This patch fixes warning: 'braces {} are not necessary for single statement blocks' found by checkpatch.pl in driver bcm. Signed-off-by: Tülin İzer <tulinizer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-16Staging: bcm: Fixed error 'that open brace { should be on the previous line'.Tülin İzer1-54/+27
This patch fixes error 'that open brace { should be on the previous line' found by checkpatch in driver bcm. Signed-off-by: Tülin İzer <tulinizer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-16Staging: bcm: Fixed warning 'space required around '=''.Tülin İzer1-3/+3
This patch fixes warning 'space required around '='' found by checkpatch in driver bcm. Signed-off-by: Tülin İzer <tulinizer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-16Staging: bcm: Fixed warning about C99 comments.Tülin İzer1-9/+9
Fixed warning 'C99 comments' found by checkpatch in driver bcm. Signed-off-by: Tülin İzer <tulinizer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-13Staging: bcm: Fixed warning about pointer position.Tülin İzer1-1/+1
This patch fixes warning about pointer position in driver bcm. Signed-off-by: Tülin İzer <tulinizer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-13Staging: bcm: fixed warning 'space reqires around '==' 'Tülin İzer1-4/+4
This patch fixes warning found by checkpatch.pl in driver bcm. Signed-off-by: Tülin İzer <tulinizer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-13Staging: bcm: fixed warning 'space required after ',' 'Tülin İzer1-39/+39
This patch fixes warning found by checkpatch.pl in driver bcm. Signed-off-by: Tülin İzer <tulinizer@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-05-13Staging: bcm: Fix of a litte white space error in Bcmchar.cSeverin Gsponer1-1/+1
Fixed a wrong placed whitespace. Found with the checkpatch.pl script. checkpatch.pl error message: ERROR: "foo * bar" should be "foo *bar" +static int bcm_char_open(struct inode *inode, struct file * filp) Signed-off-by: Severin Gsponer <svgsponer@gmail.com> Acked-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-11Staging: bcm: Fix spelling error in PHSModule.cKevin McKinney1-1/+1
This patch fixes a spelling error in PHSModule.c Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-11Staging: bcm: Properly format comments in PHSModule.cKevin McKinney1-271/+272
This patch properly formats comments, and removes them as needed in PHSModule.c. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-11Staging: bcm: Properly format braces in PHSModule.cKevin McKinney1-293/+140
This patch formats braces in PHSModule.c as reported by checkpatch.pl. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-11Staging: bcm: Fix all white space issues in PHSModule.cKevin McKinney1-596/+588
This patch fixes all white space issues in PHSModule.c as reported by checkpatch.pl. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-11staging: bcm: don't cast kzalloc() return valueMihnea Dobrescu-Balaur1-7/+7
Signed-off-by: Mihnea Dobrescu-Balaur <mihneadb@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-11Staging: bcm: potential forever loop verifying firmwareDan Carpenter1-27/+5
There is an ioctl() to write data to the firmware. After the data is written, it reads the databack from the firmware and compares against what the user wanted to write and prints an error message if it doesn't match. The problem is that verify process has a forever loop if the firmware size is not a multiple of 4. I've fixed it by replacing the bcm compare function with memcmp(). I have chopped out some debugging code in the process. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-03-11Staging: bcm: avoid use-after-free in bcm_char_ioctl()Xi Wang1-1/+1
Free pBulkBuffer (pvBuffer) after pBulkBuffer->Register. Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-02-26Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfsLinus Torvalds1-1/+1
Pull vfs pile (part one) from Al Viro: "Assorted stuff - cleaning namei.c up a bit, fixing ->d_name/->d_parent locking violations, etc. The most visible changes here are death of FS_REVAL_DOT (replaced with "has ->d_weak_revalidate()") and a new helper getting from struct file to inode. Some bits of preparation to xattr method interface changes. Misc patches by various people sent this cycle *and* ocfs2 fixes from several cycles ago that should've been upstream right then. PS: the next vfs pile will be xattr stuff." * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (46 commits) saner proc_get_inode() calling conventions proc: avoid extra pde_put() in proc_fill_super() fs: change return values from -EACCES to -EPERM fs/exec.c: make bprm_mm_init() static ocfs2/dlm: use GFP_ATOMIC inside a spin_lock ocfs2: fix possible use-after-free with AIO ocfs2: Fix oops in ocfs2_fast_symlink_readpage() code path get_empty_filp()/alloc_file() leave both ->f_pos and ->f_version zero target: writev() on single-element vector is pointless export kernel_write(), convert open-coded instances fs: encode_fh: return FILEID_INVALID if invalid fid_type kill f_vfsmnt vfs: kill FS_REVAL_DOT by adding a d_weak_revalidate dentry op nfsd: handle vfs_getattr errors in acl protocol switch vfs_getattr() to struct path default SET_PERSONALITY() in linux/elf.h ceph: prepopulate inodes only when request is aborted d_hash_and_lookup(): export, switch open-coded instances 9p: switch v9fs_set_create_acl() to inode+fid, do it before d_instantiate() 9p: split dropping the acls from v9fs_set_create_acl() ...
2013-02-22new helper: file_inode(file)Al Viro1-1/+1
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2013-02-21Merge tag 'staging-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/stagingLinus Torvalds26-1285/+1012
Pull staging tree update from Greg Kroah-Hartman: "Here's the big staging tree merge for 3.9-rc1 Lots of cleanups and updates for drivers all through the staging tree. We are pretty much "code neutral" here, adding just about as many lines as we removed. All of these have been in linux-next for a while." * tag 'staging-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (804 commits) staging: comedi: vmk80xx: wait for URBs to complete staging: comedi: drivers: addi-data: hwdrv_apci3200.c: Add a missing semicolon staging: et131x: Update TODO list staging: et131x: Remove assignment of skb->dev staging: wlan-ng: hfa384x.h: fix for error reported by smatch staging/zache checkpatch ERROR: spaces prohibited around that staging/ozwpan: Mark read only parameters and structs as const staging/ozwpan: Remove empty and unused function oz_cdev_heartbeat staging/ozwpan: Mark local functions as static (fix sparse warnings) staging/ozwpan: Add missing header includes staging/usbip: Mark local functions as static (fix sparse warnings) staging/xgifb: Remove duplicated code in loops. staging/xgifb: Consolidate return paths staging/xgifb: Remove code without effect staging/xgifb: Remove unnecessary casts staging/xgifb: Consolidate if/else if with identical code branches staging: vt6656: replaced custom TRUE definition with true staging: vt6656: replaced custom FALSE definition with false staging: vt6656: replace custom BOOL definition with bool staging/rtl8187se: Mark functions as static to silence sparse ...
2013-02-11staging: Remove unnecessary OOM messagesJoe Perches1-10/+4
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>
2013-01-17Staging: bcm: copying more data than intendedDan Carpenter1-1/+1
This was changed to bcm_flash2x_cs_info instead of bcm_flash_cs_info when we got rid of the typedefs. bcm_flash2x_cs_info is quite a bit larger than bcm_flash_cs_info (436 bytes instead of 96) so it would corrupt user memory and it's an info leak. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-11Staging: bcm: add a missing break statementDan Carpenter1-0/+1
My static checker complains that there is a missing break statement here. From the context, it does look like a break statement was intended. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Fix warning: "Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ..."Kevin McKinney1-3/+3
This patch fixes the following warning: "WARNING: Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ... then pr_debug(... to printk(KERN_DEBUG ..." in Debug.h Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Change the name of typedef USER_BCM_DBG_STATE to bcm_user_debug_state.Kevin McKinney2-4/+4
This patch removes typedef for USER_BCM_DBG_STATE, and changes the name of the struct to bcm_user_debug_state. In addition, any calls to struct "USER_BCM_DBG_STATE" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Remove typedef for _S_BCM_DEBUG_STATE and call directly.Kevin McKinney2-3/+3
This patch removes typedef for _S_BCM_DEBUG_STATE, and changes the name of the struct to bcm_debug_state. In addition, any calls to struct "S_BCM_DEBUG_STATE" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Replace UINT with unsigned int in Debug.hKevin McKinney1-3/+3
This patch replaces "UINT" with "unsigned int" in Debug.h Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Fix error: "Macros with complex values should be enclosed in parenthesis" in Debug.hKevin McKinney1-1/+1
This patch fixes the following error: "Macros with complex values should be enclosed in parenthesis" as reported by checkpatch.pl. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Fix warning: "__packed is preferred over __attribute__((packed))" in Debug.hKevin McKinney1-1/+1
This patch fixes the following warning: "__packed is preferred over __attribute__((packed))" as reported by checkpatch.pl. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Properly format braces in Debug.hKevin McKinney1-2/+1
This patch formats braces in Debug.h as reported by checkpatch.pl. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Properly format comments in Debug.hKevin McKinney1-45/+46
This patch properly formats comments, and removes them as needed in Debug.h. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Fix all white space issues in Debug.hKevin McKinney1-123/+111
This patch fixes all white space issues in Debug.h as reported by checkpatch.pl. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Remove typedef for TransportHeaderT and call directly.Kevin McKinney2-4/+3
This patch removes typedef for TransportHeaderT, and changes the name of the struct to bcm_transport_header. In addition, any calls to struct "xporthdr" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Remove typedef for _E_NWPKT_IPFRAME_TYPE and call directly.Kevin McKinney1-3/+3
This patch removes typedef for _E_NWPKT_IPFRAME_TYPE, and changes the name of the enum to bcm_ip_frame_type. In addition, any calls to enum "E_NWPKT_IPFRAME_TYPE" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Remove typedef for _E_NWPKT_ETHFRAME_TYPE and call directly.Kevin McKinney1-3/+3
This patch removes typedef for _E_NWPKT_ETHFRAME_TYPE, and changes the name of the enum to bcm_eth_frame_type. In addition, any calls to enum "E_NWPKT_ETHFRAME_TYPE, are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Remove typedef for _S_ETHCS_PKT_INFO and call directly.Kevin McKinney2-9/+9
This patch removes typedef for _S_ETHCS_PKT_INFO, and changes the name of the struct to bcm_eth_packet_info. In addition, any calls to struct "S_ETHCS_PKT_INFO, or *PS_ETHCS_PKT_INFO" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Remove typedef for _ETH_CS_802_Q_FRAME and call directly.Kevin McKinney2-4/+4
This patch removes typedef for _ETH_CS_802_Q_FRAME, and changes the name of the struct to bcm_eth_q_frame. In addition, any calls to struct "ETH_CS_802_Q_FRAME" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Remove typedef for _ETH_CS_802_LLC_FRAME and call directly.Kevin McKinney2-5/+5
This patch removes typedef for _ETH_CS_802_LLC_FRAME, and changes the name of the struct to bcm_eth_llc_frame. In addition, any calls to struct "ETH_CS_802_LLC_FRAME" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-07Staging: bcm: Remove typedef for _ETH_CS_802_LLC_SNAP_FRAME and call directly.Kevin McKinney2-4/+4
This patch removes typedef for _ETH_CS_802_LLC_SNAP_FRAME, and changes the name of the struct to bcm_eth_llc_snap_frame. In addition, any calls to struct "ETH_CS_802_LLC_SNAP_FRAME" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>