aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin McKinney <klmckinney1@gmail.com>2012-09-23 23:07:13 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-09-26 12:31:52 -0400
commitfc1ad16277bd14c6a4f16a2e32cae186fd6d039e (patch)
treed533089916dd5db53db305f7a75c3c2509ecc52d
parentda529f0ffb03b90f8d6a462f2681e72f4da7032a (diff)
Staging: bcm: Remove typedef for _stLocalSFAddRequest and call directly.
This patch removes typedef for _stLocalSFAddRequest, and changes the name of the struct to bcm_add_request. In addition, any calls to typedefs "stLocalSFAddRequest or *pstLocalSFAddRequest" 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>
-rw-r--r--drivers/staging/bcm/CmHost.c6
-rw-r--r--drivers/staging/bcm/cntrl_SignalingInterface.h8
2 files changed, 5 insertions, 9 deletions
diff --git a/drivers/staging/bcm/CmHost.c b/drivers/staging/bcm/CmHost.c
index e1a93481562d..96fd1586f085 100644
--- a/drivers/staging/bcm/CmHost.c
+++ b/drivers/staging/bcm/CmHost.c
@@ -1387,7 +1387,7 @@ ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBu
1387 pstAddIndication->psfAuthorizedSet = (stServiceFlowParamSI *)ntohl((ULONG)pstAddIndication->psfAuthorizedSet); 1387 pstAddIndication->psfAuthorizedSet = (stServiceFlowParamSI *)ntohl((ULONG)pstAddIndication->psfAuthorizedSet);
1388 1388
1389 if (pstAddIndicationAlt->u8Type == DSA_REQ) { 1389 if (pstAddIndicationAlt->u8Type == DSA_REQ) {
1390 stLocalSFAddRequest AddRequest; 1390 struct bcm_add_request AddRequest;
1391 1391
1392 AddRequest.u8Type = pstAddIndicationAlt->u8Type; 1392 AddRequest.u8Type = pstAddIndicationAlt->u8Type;
1393 AddRequest.eConnectionDir = pstAddIndicationAlt->u8Direction; 1393 AddRequest.eConnectionDir = pstAddIndicationAlt->u8Direction;
@@ -1395,8 +1395,8 @@ ULONG StoreCmControlResponseMessage(struct bcm_mini_adapter *Adapter, PVOID pvBu
1395 AddRequest.u16CID = pstAddIndicationAlt->u16CID; 1395 AddRequest.u16CID = pstAddIndicationAlt->u16CID;
1396 AddRequest.u16VCID = pstAddIndicationAlt->u16VCID; 1396 AddRequest.u16VCID = pstAddIndicationAlt->u16VCID;
1397 AddRequest.psfParameterSet = pstAddIndication->psfAuthorizedSet; 1397 AddRequest.psfParameterSet = pstAddIndication->psfAuthorizedSet;
1398 (*puBufferLength) = sizeof(stLocalSFAddRequest); 1398 (*puBufferLength) = sizeof(struct bcm_add_request);
1399 memcpy(pvBuffer, &AddRequest, sizeof(stLocalSFAddRequest)); 1399 memcpy(pvBuffer, &AddRequest, sizeof(struct bcm_add_request));
1400 kfree(pstAddIndication); 1400 kfree(pstAddIndication);
1401 return 1; 1401 return 1;
1402 } 1402 }
diff --git a/drivers/staging/bcm/cntrl_SignalingInterface.h b/drivers/staging/bcm/cntrl_SignalingInterface.h
index fbdc2316d997..43d462e59088 100644
--- a/drivers/staging/bcm/cntrl_SignalingInterface.h
+++ b/drivers/staging/bcm/cntrl_SignalingInterface.h
@@ -260,10 +260,7 @@ typedef struct _stServiceFlowParamSI {
260} stServiceFlowParamSI, *pstServiceFlowParamSI; 260} stServiceFlowParamSI, *pstServiceFlowParamSI;
261typedef stServiceFlowParamSI CServiceFlowParamSI; 261typedef stServiceFlowParamSI CServiceFlowParamSI;
262 262
263/* 263struct bcm_add_request {
264 * structure stLocalSFAddRequest
265 */
266typedef struct _stLocalSFAddRequest {
267 B_UINT8 u8Type; /* < Type */ 264 B_UINT8 u8Type; /* < Type */
268 B_UINT8 eConnectionDir; /* < Connection direction */ 265 B_UINT8 eConnectionDir; /* < Connection direction */
269 /* brief 16 bit TID */ 266 /* brief 16 bit TID */
@@ -274,8 +271,7 @@ typedef struct _stLocalSFAddRequest {
274 B_UINT16 u16VCID; /* < 16bit VCID */ 271 B_UINT16 u16VCID; /* < 16bit VCID */
275 /* brief structure ParameterSet */ 272 /* brief structure ParameterSet */
276 stServiceFlowParamSI *psfParameterSet; /* < structure ParameterSet */ 273 stServiceFlowParamSI *psfParameterSet; /* < structure ParameterSet */
277 274};
278} stLocalSFAddRequest, *pstLocalSFAddRequest;
279 275
280struct bcm_add_indication { 276struct bcm_add_indication {
281 B_UINT8 u8Type; /* < Type */ 277 B_UINT8 u8Type; /* < Type */