Staging: bcm: Remove typedef for _PACKETTOSEND and call directly.
authorKevin McKinney <klmckinney1@gmail.com>
Sat, 26 May 2012 16:05:10 +0000 (12:05 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 04:09:21 +0000 (21:09 -0700)
This patch removes typedef for _PACKETTOSEND, changes the
name of the struct from _PACKETTOSEND to bcm_packettosend.
In addition, any calls to the following typedefs
"PACKETTOSEND, *PPACKETTOSEND" are changed to call
the struct directly.

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/Adapter.h
drivers/staging/bcm/Macros.h

index ea83bc03b696ca44586dce9b82327c96d41db875..fce61ed2ab063b05d5c9aa1e80f1c6d8a97512c2 100644 (file)
@@ -15,11 +15,10 @@ struct _LEADER {
 } __packed;
 typedef struct _LEADER LEADER, *PLEADER;
 
-struct _PACKETTOSEND {
+struct bcm_packettosend {
        LEADER  Leader;
        UCHAR   ucPayload;
 } __packed;
-typedef struct _PACKETTOSEND PACKETTOSEND, *PPACKETTOSEND;
 
 struct bcm_control_packet {
        PVOID   ControlBuff;
index 8238cdba7a0f69db20333f5866c01ea045691b7c..7c03cce5eede3eb70fd6bc5431bde91817d4f081 100644 (file)
 #define LEADER_STATUS         0x00
 #define LEADER_STATUS_TCP_ACK 0x1
 #define LEADER_SIZE           sizeof(LEADER)
-#define MAC_ADDR_REQ_SIZE     sizeof(PACKETTOSEND)
-#define SS_INFO_REQ_SIZE      sizeof(PACKETTOSEND)
+#define MAC_ADDR_REQ_SIZE     sizeof(struct bcm_packettosend)
+#define SS_INFO_REQ_SIZE      sizeof(struct bcm_packettosend)
 #define CM_REQUEST_SIZE       (LEADER_SIZE + sizeof(stLocalSFChangeRequest))
-#define IDLE_REQ_SIZE         sizeof(PACKETTOSEND)
+#define IDLE_REQ_SIZE         sizeof(struct bcm_packettosend)
 
 
 #define MAX_TRANSFER_CTRL_BYTE_USB (2*1024)