Skip to content

Commit

Permalink
ath6kl: remove-typedef PSCmdPacket
Browse files Browse the repository at this point in the history
remove-typedef -s PSCmdPacket \
	"struct ps_cmd_packet" drivers/staging/ath6kl/

Tested-by: Naveen Singh <nsingh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Luis R. Rodriguez authored and Greg Kroah-Hartman committed Mar 14, 2011
1 parent 6286085 commit a541306
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*/
typedef struct {

PSCmdPacket *HciCmdList;
struct ps_cmd_packet *HciCmdList;
u32 num_packets;
struct ar3k_config_info *dev;
}HciCommandListParam;
Expand Down Expand Up @@ -133,7 +133,7 @@ int PSSendOps(void *arg)
{
int i;
int status = 0;
PSCmdPacket *HciCmdList; /* List storing the commands */
struct ps_cmd_packet *HciCmdList; /* List storing the commands */
const struct firmware* firmware;
u32 numCmds;
u8 *event;
Expand Down
12 changes: 6 additions & 6 deletions drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ tRamPatch RamPatch[MAX_NUM_PATCH_ENTRY];
int AthParseFilesUnified(u8 *srcbuffer,u32 srclen, int FileFormat);
char AthReadChar(u8 *buffer, u32 len,u32 *pos);
char *AthGetLine(char *buffer, int maxlen, u8 *srcbuffer,u32 len,u32 *pos);
static int AthPSCreateHCICommand(u8 Opcode, u32 Param1,PSCmdPacket *PSPatchPacket,u32 *index);
static int AthPSCreateHCICommand(u8 Opcode, u32 Param1,struct ps_cmd_packet *PSPatchPacket,u32 *index);

/* Function to reads the next character from the input buffer */
char AthReadChar(u8 *buffer, u32 len,u32 *pos)
Expand Down Expand Up @@ -764,7 +764,7 @@ static void LoadHeader(u8 *HCI_PS_Command,u8 opcode,int length,int index){

/////////////////////////
//
int AthCreateCommandList(PSCmdPacket **HciPacketList, u32 *numPackets)
int AthCreateCommandList(struct ps_cmd_packet **HciPacketList, u32 *numPackets)
{

u8 count;
Expand All @@ -785,8 +785,8 @@ int AthCreateCommandList(PSCmdPacket **HciPacketList, u32 *numPackets)
if(Patch_Count > 0) {
NumcmdEntry++; /* Patch Enable Command */
}
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Num Cmd Entries %d Size %d \r\n",NumcmdEntry,(u32)sizeof(PSCmdPacket) * NumcmdEntry));
(*HciPacketList) = A_MALLOC(sizeof(PSCmdPacket) * NumcmdEntry);
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Num Cmd Entries %d Size %d \r\n",NumcmdEntry,(u32)sizeof(struct ps_cmd_packet) * NumcmdEntry));
(*HciPacketList) = A_MALLOC(sizeof(struct ps_cmd_packet) * NumcmdEntry);
if(NULL == *HciPacketList) {
AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("memory allocation failed \r\n"));
}
Expand Down Expand Up @@ -833,7 +833,7 @@ int AthCreateCommandList(PSCmdPacket **HciPacketList, u32 *numPackets)
////////////////////////

/////////////
static int AthPSCreateHCICommand(u8 Opcode, u32 Param1,PSCmdPacket *PSPatchPacket,u32 *index)
static int AthPSCreateHCICommand(u8 Opcode, u32 Param1,struct ps_cmd_packet *PSPatchPacket,u32 *index)
{
u8 *HCI_PS_Command;
u32 Length;
Expand Down Expand Up @@ -955,7 +955,7 @@ static int AthPSCreateHCICommand(u8 Opcode, u32 Param1,PSCmdPacket *PSPatchPacke
}
return 0;
}
int AthFreeCommandList(PSCmdPacket **HciPacketList, u32 numPackets)
int AthFreeCommandList(struct ps_cmd_packet **HciPacketList, u32 numPackets)
{
int i;
if(*HciPacketList == NULL) {
Expand Down
8 changes: 4 additions & 4 deletions drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@



typedef struct PSCmdPacket
struct ps_cmd_packet
{
u8 *Hcipacket;
int packetLen;
} PSCmdPacket;
};

/* Parses a Patch information buffer and store it in global structure */
int AthDoParsePatch(u8 *, u32 );
Expand All @@ -112,8 +112,8 @@ int AthDoParsePS(u8 *, u32 );
* PS Tag Command(s)
*
*/
int AthCreateCommandList(PSCmdPacket **, u32 *);
int AthCreateCommandList(struct ps_cmd_packet **, u32 *);

/* Cleanup the dynamically allicated HCI command list */
int AthFreeCommandList(PSCmdPacket **HciPacketList, u32 numPackets);
int AthFreeCommandList(struct ps_cmd_packet **HciPacketList, u32 numPackets);
#endif /* __AR3KPSPARSER_H */

0 comments on commit a541306

Please sign in to comment.