summaryrefslogtreecommitdiffstats
path: root/drivers/staging/bcm
Commit message (Collapse)AuthorAgeFilesLines
* staging: Remove unnecessary OOM messagesJoe Perches2013-02-111-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>
* Staging: bcm: copying more data than intendedDan Carpenter2013-01-171-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>
* Staging: bcm: add a missing break statementDan Carpenter2013-01-111-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>
* Staging: bcm: Fix warning: "Prefer netdev_dbg(netdev, ... then dev_dbg(dev, ↵Kevin McKinney2013-01-071-3/+3
| | | | | | | | | | | | ... then pr_debug(... to printk(KERN_DEBUG ..." 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>
* Staging: bcm: Change the name of typedef USER_BCM_DBG_STATE to ↵Kevin McKinney2013-01-072-4/+4
| | | | | | | | | | | | bcm_user_debug_state. 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>
* Staging: bcm: Remove typedef for _S_BCM_DEBUG_STATE and call directly.Kevin McKinney2013-01-072-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>
* Staging: bcm: Replace UINT with unsigned int in Debug.hKevin McKinney2013-01-071-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>
* Staging: bcm: Fix error: "Macros with complex values should be enclosed in ↵Kevin McKinney2013-01-071-1/+1
| | | | | | | | | | | parenthesis" in Debug.h 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>
* Staging: bcm: Fix warning: "__packed is preferred over ↵Kevin McKinney2013-01-071-1/+1
| | | | | | | | | | | __attribute__((packed))" in Debug.h 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>
* Staging: bcm: Properly format braces in Debug.hKevin McKinney2013-01-071-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>
* Staging: bcm: Properly format comments in Debug.hKevin McKinney2013-01-071-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>
* Staging: bcm: Fix all white space issues in Debug.hKevin McKinney2013-01-071-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>
* Staging: bcm: Remove typedef for TransportHeaderT and call directly.Kevin McKinney2013-01-072-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>
* Staging: bcm: Remove typedef for _E_NWPKT_IPFRAME_TYPE and call directly.Kevin McKinney2013-01-071-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>
* Staging: bcm: Remove typedef for _E_NWPKT_ETHFRAME_TYPE and call directly.Kevin McKinney2013-01-071-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>
* Staging: bcm: Remove typedef for _S_ETHCS_PKT_INFO and call directly.Kevin McKinney2013-01-072-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>
* Staging: bcm: Remove typedef for _ETH_CS_802_Q_FRAME and call directly.Kevin McKinney2013-01-072-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>
* Staging: bcm: Remove typedef for _ETH_CS_802_LLC_FRAME and call directly.Kevin McKinney2013-01-072-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>
* Staging: bcm: Remove typedef for _ETH_CS_802_LLC_SNAP_FRAME and call directly.Kevin McKinney2013-01-072-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>
* Staging: bcm: Remove typedef for _ETH_CS_ETH2_FRAME and call directly.Kevin McKinney2013-01-072-4/+4
| | | | | | | | | | This patch removes typedef for _ETH_CS_ETH2_FRAME, and changes the name of the struct to bcm_ethernet2_frame. In addition, any calls to struct "ETH_CS_ETH2_FRAME" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for _E_SERVICEFLOW_CS_SPEC_ and call directly.Kevin McKinney2013-01-071-2/+2
| | | | | | | | This patch removes typedef for _E_SERVICEFLOW_CS_SPEC_, and changes the name of the enum to bcm_spec_encoding. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for _TCP_HEADER and call directly.Kevin McKinney2013-01-072-5/+5
| | | | | | | | | | This patch removes typedef for _TCP_HEADER, and changes the name of the struct to bcm_tcp_header. In addition, any calls to struct "TCP_HEADER, or *PTCP_HEADER" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Replace UCHAR with unsigned char in Protocol.hKevin McKinney2013-01-071-3/+3
| | | | | | | | This patch replaces "UCHAR" with "unsigned char" in Protocol.h Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Replace ULONG with unsigned long in Protocol.hKevin McKinney2013-01-071-2/+2
| | | | | | | | This patch replaces "ULONG" with "unsigned long" in Protocol.h Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Replace USHORT with unsigned short in Protocol.hKevin McKinney2013-01-071-10/+10
| | | | | | | | This patch replaces "USHORT" with "unsigned short" in Protocol.h Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Fix issue: "Macros with complex values should be enclosed in ↵Kevin McKinney2013-01-071-2/+2
| | | | | | | | | | | parenthesis" in Protocol.h This patch fixes the following issue: "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>
* Staging: bcm: Fix warning: "__packed is preferred over ↵Kevin McKinney2013-01-071-5/+5
| | | | | | | | | | | __attribute__((packed))" in Protocol.h 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>
* Staging: bcm: Properly format braces in Protocol.hKevin McKinney2013-01-071-22/+11
| | | | | | | | This patch formats braces in Protocol.h as reported by checkpatch.pl. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Properly format comments in Protocol.hKevin McKinney2013-01-071-5/+5
| | | | | | | | This patch properly formats comments, and removes them as needed in Protocol.h. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Fix all white space issues in Protocol.hKevin McKinney2013-01-071-44/+33
| | | | | | | | This patch fixes all white space issues in Protocol.h as reported by checkpatch.pl. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Replace UCHAR with unsigned char in Macros.hKevin McKinney2013-01-071-3/+3
| | | | | | | | This patch replaces "UCHAR" with "unsigned char" in Macros.h. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for _LINK_STATE and call directly.Kevin McKinney2013-01-072-5/+3
| | | | | | | | | | This patch removes typedef for _LINK_STATE, and changes the name of the struct to bcm_link_state. In addition, any calls to struct "LINK_STATE, or PLINK_STATE" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for _E_PHS_DSC_ACTION and call directly.Kevin McKinney2013-01-071-3/+2
| | | | | | | | This patch removes typedef for _E_PHS_DSC_ACTION, and changes the name of the enum to bcm_phs_dsc_action. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for eNVM_TYPE and call directly.Kevin McKinney2013-01-075-7/+7
| | | | | | | | | | This patch removes typedef for eNVM_TYPE, and changes the name of the enum to bcm_nvm_type. In addition, any calls to enum "NVM_TYPE" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for ePMU_MODES and call directly.Kevin McKinney2013-01-071-2/+2
| | | | | | | | This patch removes typedef for ePMU_MODES, and changes the name of the enum to bcm_pmu_modes. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for _S_PHS_RULE and call directly.Kevin McKinney2013-01-076-38/+38
| | | | | | | | | | This patch removes typedef for _S_PHS_RULE, and changes the name of the struct to bcm_phs_rule. In addition, any calls to struct "S_PHS_RULE" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for _E_CLASSIFIER_ENTRY_CONTEXT and call directly.Kevin McKinney2013-01-072-8/+8
| | | | | | | | | | This patch removes typedef for _E_CLASSIFIER_ENTRY_CONTEXT, and changes the name of the enum to bcm_phs_classifier_context. In addition, any calls to enum "_E_CLASSIFIER_ENTRY_CONTEXT" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for _S_CLASSIFIER_ENTRY and call directly.Kevin McKinney2013-01-073-21/+21
| | | | | | | | | | This patch removes typedef for _S_CLASSIFIER_ENTRY, and changes the name of the struct to bcm_phs_classifier_entry. In addition, any calls to struct "_S_CLASSIFIER_ENTRY" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for _S_CLASSIFIER_TABLE and call directly.Kevin McKinney2013-01-073-20/+20
| | | | | | | | | | This patch removes typedef for _S_CLASSIFIER_TABLE, and changes the name of the struct to bcm_phs_classifier_table. In addition, any calls to struct "S_CLASSIFIER_TABLE" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for _S_SERVICEFLOW_ENTRY and call directly.Kevin McKinney2013-01-074-17/+17
| | | | | | | | | | This patch removes typedef for _S_SERVICEFLOW_ENTRY, and changes the name of the struct to bcm_phs_entry. In addition, any calls to struct "_S_SERVICEFLOW_ENTRY" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for _S_SERVICEFLOW_TABLE and call directly.Kevin McKinney2013-01-073-11/+11
| | | | | | | | | | This patch removes typedef for _S_SERVICEFLOW_TABLE, and changes the name of the struct to bcm_phs_table. In addition, any calls to struct "S_SERVICEFLOW_TABLE" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for _PHS_DEVICE_EXTENSION and call directly.Kevin McKinney2013-01-075-18/+18
| | | | | | | | | | This patch removes typedef for _PHS_DEVICE_EXTENSION, and changes the name of the struct to bcm_phs_extension. In addition, any calls to struct "PHS_DEVICE_EXTENSION, or *PPHS_DEVICE_EXTENSION;" are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Replace LONG with long in PHSDefines.hKevin McKinney2013-01-071-1/+1
| | | | | | | | This patch replaces "LONG" with "long" in PHSDefines.h Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Replace ULONG with unsigned long in PHSDefines.hKevin McKinney2013-01-071-2/+2
| | | | | | | | This patch replaces "ULONG" with "unsigned long" in PHSDefines.h Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Replace B_UINT16 with u16 in PHSDefines.hKevin McKinney2013-01-071-5/+5
| | | | | | | | This patch replace "B_UINT16" with "u16" in PHSDefines.h Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Replace B_UINT8 with u8 in PHSDefines.hKevin McKinney2013-01-071-14/+14
| | | | | | | | This patch replace "B_UINT8" with "u8" in PHSDefines.h Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Properly format braces in PHSDefines.hKevin McKinney2013-01-071-15/+7
| | | | | | | This patch formats braces in PHSDefines.h. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Properly format comments in PHSDefines.hKevin McKinney2013-01-071-12/+5
| | | | | | | | This patch properly formats comments, and removes them as needed in PHSDefines.h. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Fix all white space issues in PHSDefines.hKevin McKinney2013-01-071-78/+63
| | | | | | | | This patch fixes all white space issues in PHSDefines.h as reported by checkpatch.pl. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
* Staging: bcm: Remove typedef for _TARGET_PARAMS and call directly.Kevin McKinney2013-01-074-10/+10
| | | | | | | | | | | This patch removes typedef for _TARGET_PARAMS, and changes the name of the struct to bcm_target_params. In addition, any calls to struct "stTargetParams, TARGET_PARAMS, *PTARGET_PARAMS, STARGETPARAMS, or *PSTARGETPARAMS are changed to call directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
OpenPOWER on IntegriCloud