aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKevin McKinney <klmckinney1@gmail.com>2012-09-23 23:07:15 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-26 12:31:52 -0400
commitc07b53131ef87e11d14402a588a44440892f946c (patch)
treed9a082e8fc4c3191e2dc14540b803bb1c197f191 /drivers
parentb766fb15e1c489d1e5b5a80501593f61fae3a7eb (diff)
Staging: bcm: Remove typedef for _stConvergenceSLTypes and call directly.
This patch removes typedef for _stConvergenceSLTypes, changes the name of the struct to bcm_convergence_types, and updates the comments appropriately. In addition, any calls to typedefs "stConvergenceSLTypes, CConvergenceSLTypes, and *pstConvergenceSLTypes" are changed to call the struct directly. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Acked-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/bcm/CmHost.c10
-rw-r--r--drivers/staging/bcm/cntrl_SignalingInterface.h12
2 files changed, 10 insertions, 12 deletions
diff --git a/drivers/staging/bcm/CmHost.c b/drivers/staging/bcm/CmHost.c
index af7f7c6e6f66..325b592fd41f 100644
--- a/drivers/staging/bcm/CmHost.c
+++ b/drivers/staging/bcm/CmHost.c
@@ -235,7 +235,7 @@ void ClearTargetDSXBuffer(struct bcm_mini_adapter *Adapter, B_UINT16 TID, BOOLEA
235 * @ingroup ctrl_pkt_functions 235 * @ingroup ctrl_pkt_functions
236 * copy classifier rule into the specified SF index 236 * copy classifier rule into the specified SF index
237 */ 237 */
238static inline VOID CopyClassifierRuleToSF(struct bcm_mini_adapter *Adapter, stConvergenceSLTypes *psfCSType, UINT uiSearchRuleIndex, UINT nClassifierIndex) 238static inline VOID CopyClassifierRuleToSF(struct bcm_mini_adapter *Adapter, struct bcm_convergence_types *psfCSType, UINT uiSearchRuleIndex, UINT nClassifierIndex)
239{ 239{
240 struct bcm_classifier_rule *pstClassifierEntry = NULL; 240 struct bcm_classifier_rule *pstClassifierEntry = NULL;
241 /* VOID *pvPhsContext = NULL; */ 241 /* VOID *pvPhsContext = NULL; */
@@ -439,7 +439,7 @@ static VOID CopyToAdapter(register struct bcm_mini_adapter *Adapter, /* <Pointer
439 enum E_CLASSIFIER_ACTION eClassifierAction = eInvalidClassifierAction; 439 enum E_CLASSIFIER_ACTION eClassifierAction = eInvalidClassifierAction;
440 B_UINT16 u16PacketClassificationRuleIndex = 0; 440 B_UINT16 u16PacketClassificationRuleIndex = 0;
441 int i; 441 int i;
442 stConvergenceSLTypes *psfCSType = NULL; 442 struct bcm_convergence_types *psfCSType = NULL;
443 S_PHS_RULE sPhsRule; 443 S_PHS_RULE sPhsRule;
444 USHORT uVCID = Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value; 444 USHORT uVCID = Adapter->PackInfo[uiSearchRuleIndex].usVCID_Value;
445 UINT UGIValue = 0; 445 UINT UGIValue = 0;
@@ -915,7 +915,7 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
915 if (!pstAddIndication->sfAuthorizedSet.bValid) 915 if (!pstAddIndication->sfAuthorizedSet.bValid)
916 pstAddIndication->sfAuthorizedSet.bValid = 1; 916 pstAddIndication->sfAuthorizedSet.bValid = 1;
917 for (nIndex = 0; nIndex < nCurClassifierCnt; nIndex++) { 917 for (nIndex = 0; nIndex < nCurClassifierCnt; nIndex++) {
918 stConvergenceSLTypes *psfCSType = NULL; 918 struct bcm_convergence_types *psfCSType = NULL;
919 psfCSType = &pstAddIndication->sfAuthorizedSet.cConvergenceSLTypes[nIndex]; 919 psfCSType = &pstAddIndication->sfAuthorizedSet.cConvergenceSLTypes[nIndex];
920 920
921 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "psfCSType = %p", psfCSType); 921 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, "psfCSType = %p", psfCSType);
@@ -1059,7 +1059,7 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
1059 nCurClassifierCnt = MAX_CLASSIFIERS_IN_SF; 1059 nCurClassifierCnt = MAX_CLASSIFIERS_IN_SF;
1060 1060
1061 for (nIndex = 0; nIndex < nCurClassifierCnt; nIndex++) { 1061 for (nIndex = 0; nIndex < nCurClassifierCnt; nIndex++) {
1062 stConvergenceSLTypes *psfCSType = NULL; 1062 struct bcm_convergence_types *psfCSType = NULL;
1063 1063
1064 psfCSType = &pstAddIndication->sfAdmittedSet.cConvergenceSLTypes[nIndex]; 1064 psfCSType = &pstAddIndication->sfAdmittedSet.cConvergenceSLTypes[nIndex];
1065 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, " CCPacketClassificationRuleSI====>"); 1065 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, " CCPacketClassificationRuleSI====>");
@@ -1198,7 +1198,7 @@ static VOID DumpCmControlPacket(PVOID pvBuffer)
1198 nCurClassifierCnt = MAX_CLASSIFIERS_IN_SF; 1198 nCurClassifierCnt = MAX_CLASSIFIERS_IN_SF;
1199 1199
1200 for (nIndex = 0; nIndex < nCurClassifierCnt; nIndex++) { 1200 for (nIndex = 0; nIndex < nCurClassifierCnt; nIndex++) {
1201 stConvergenceSLTypes *psfCSType = NULL; 1201 struct bcm_convergence_types *psfCSType = NULL;
1202 1202
1203 psfCSType = &pstAddIndication->sfActiveSet.cConvergenceSLTypes[nIndex]; 1203 psfCSType = &pstAddIndication->sfActiveSet.cConvergenceSLTypes[nIndex];
1204 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, " CCPacketClassificationRuleSI====>"); 1204 BCM_DEBUG_PRINT(Adapter, DBG_TYPE_OTHERS, DUMP_CONTROL, DBG_LVL_ALL, " CCPacketClassificationRuleSI====>");
diff --git a/drivers/staging/bcm/cntrl_SignalingInterface.h b/drivers/staging/bcm/cntrl_SignalingInterface.h
index 369425528e49..1bf4780b32bf 100644
--- a/drivers/staging/bcm/cntrl_SignalingInterface.h
+++ b/drivers/staging/bcm/cntrl_SignalingInterface.h
@@ -122,8 +122,7 @@ typedef struct _stPhsRuleSI {
122} stPhsRuleSI, *pstPhsRuleSI; 122} stPhsRuleSI, *pstPhsRuleSI;
123typedef stPhsRuleSI CPhsRuleSI; 123typedef stPhsRuleSI CPhsRuleSI;
124 124
125/* brief structure cConvergenceSLTypes */ 125struct bcm_convergence_types {
126struct _stConvergenceSLTypes {
127 /* 8bit Phs Classfier Action Of The Service Flow */ 126 /* 8bit Phs Classfier Action Of The Service Flow */
128 B_UINT8 u8ClassfierDSCAction; 127 B_UINT8 u8ClassfierDSCAction;
129 /* 8bit Phs DSC Action Of The Service Flow */ 128 /* 8bit Phs DSC Action Of The Service Flow */
@@ -135,7 +134,6 @@ struct _stConvergenceSLTypes {
135 /* brief class CPhsRuleSI */ 134 /* brief class CPhsRuleSI */
136 struct _stPhsRuleSI cPhsRule; 135 struct _stPhsRuleSI cPhsRule;
137}; 136};
138typedef struct _stConvergenceSLTypes stConvergenceSLTypes, CConvergenceSLTypes, *pstConvergenceSLTypes;
139 137
140struct bcm_connect_mgr_params { 138struct bcm_connect_mgr_params {
141 /* 32bitSFID Of The Service Flow */ 139 /* 32bitSFID Of The Service Flow */
@@ -251,10 +249,10 @@ struct bcm_connect_mgr_params {
251 B_UINT8 u8TotalClassifiers; /* < Total number of valid classifiers */ 249 B_UINT8 u8TotalClassifiers; /* < Total number of valid classifiers */
252 B_UINT8 bValid; /* < Validity flag */ 250 B_UINT8 bValid; /* < Validity flag */
253 B_UINT8 u8Padding; /* < Padding byte */ 251 B_UINT8 u8Padding; /* < Padding byte */
254/* 252 /*
255 * Structure for Convergence SubLayer Types with a maximum of 4 classifiers 253 * Structure for Convergence SubLayer Types with a maximum of 4 classifiers
256 */ 254 */
257 stConvergenceSLTypes cConvergenceSLTypes[MAX_CLASSIFIERS_IN_SF]; 255 struct bcm_convergence_types cConvergenceSLTypes[MAX_CLASSIFIERS_IN_SF];
258}; 256};
259 257
260struct bcm_add_request { 258struct bcm_add_request {