Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a869993f authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman
Browse files

Staging: bcm: Remove typedef for _PACKETTOSEND and call directly.



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: default avatarKevin McKinney <klmckinney1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c1975eda
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -15,11 +15,10 @@ struct _LEADER {
} __packed;
} __packed;
typedef struct _LEADER LEADER, *PLEADER;
typedef struct _LEADER LEADER, *PLEADER;


struct _PACKETTOSEND {
struct bcm_packettosend {
	LEADER	Leader;
	LEADER	Leader;
	UCHAR	ucPayload;
	UCHAR	ucPayload;
} __packed;
} __packed;
typedef struct _PACKETTOSEND PACKETTOSEND, *PPACKETTOSEND;


struct bcm_control_packet {
struct bcm_control_packet {
	PVOID	ControlBuff;
	PVOID	ControlBuff;
+3 −3
Original line number Original line Diff line number Diff line
@@ -109,10 +109,10 @@
#define LEADER_STATUS         0x00
#define LEADER_STATUS         0x00
#define LEADER_STATUS_TCP_ACK 0x1
#define LEADER_STATUS_TCP_ACK 0x1
#define LEADER_SIZE           sizeof(LEADER)
#define LEADER_SIZE           sizeof(LEADER)
#define MAC_ADDR_REQ_SIZE     sizeof(PACKETTOSEND)
#define MAC_ADDR_REQ_SIZE     sizeof(struct bcm_packettosend)
#define SS_INFO_REQ_SIZE      sizeof(PACKETTOSEND)
#define SS_INFO_REQ_SIZE      sizeof(struct bcm_packettosend)
#define CM_REQUEST_SIZE       (LEADER_SIZE + sizeof(stLocalSFChangeRequest))
#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)
#define MAX_TRANSFER_CTRL_BYTE_USB (2*1024)