diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2011-03-14 13:59:05 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-03-14 14:58:54 -0400 |
commit | a541306e81c531d85e052315dc47dac91adb50c9 (patch) | |
tree | af9fa0b7b720c2eb658a67225aa6ee068a669005 | |
parent | 628608591f4d3dfb4ce14793c23e188cc708cb3f (diff) |
ath6kl: remove-typedef PSCmdPacket
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>
-rw-r--r-- | drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.c | 4 | ||||
-rw-r--r-- | drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c | 12 | ||||
-rw-r--r-- | drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.h | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.c b/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.c index 3436cbdf59bd..8393efe69f5b 100644 --- a/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.c +++ b/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.c | |||
@@ -41,7 +41,7 @@ | |||
41 | */ | 41 | */ |
42 | typedef struct { | 42 | typedef struct { |
43 | 43 | ||
44 | PSCmdPacket *HciCmdList; | 44 | struct ps_cmd_packet *HciCmdList; |
45 | u32 num_packets; | 45 | u32 num_packets; |
46 | struct ar3k_config_info *dev; | 46 | struct ar3k_config_info *dev; |
47 | }HciCommandListParam; | 47 | }HciCommandListParam; |
@@ -133,7 +133,7 @@ int PSSendOps(void *arg) | |||
133 | { | 133 | { |
134 | int i; | 134 | int i; |
135 | int status = 0; | 135 | int status = 0; |
136 | PSCmdPacket *HciCmdList; /* List storing the commands */ | 136 | struct ps_cmd_packet *HciCmdList; /* List storing the commands */ |
137 | const struct firmware* firmware; | 137 | const struct firmware* firmware; |
138 | u32 numCmds; | 138 | u32 numCmds; |
139 | u8 *event; | 139 | u8 *event; |
diff --git a/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c b/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c index 300c501a1c0b..b334a3d7f72a 100644 --- a/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c +++ b/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c | |||
@@ -130,7 +130,7 @@ tRamPatch RamPatch[MAX_NUM_PATCH_ENTRY]; | |||
130 | int AthParseFilesUnified(u8 *srcbuffer,u32 srclen, int FileFormat); | 130 | int AthParseFilesUnified(u8 *srcbuffer,u32 srclen, int FileFormat); |
131 | char AthReadChar(u8 *buffer, u32 len,u32 *pos); | 131 | char AthReadChar(u8 *buffer, u32 len,u32 *pos); |
132 | char *AthGetLine(char *buffer, int maxlen, u8 *srcbuffer,u32 len,u32 *pos); | 132 | char *AthGetLine(char *buffer, int maxlen, u8 *srcbuffer,u32 len,u32 *pos); |
133 | static int AthPSCreateHCICommand(u8 Opcode, u32 Param1,PSCmdPacket *PSPatchPacket,u32 *index); | 133 | static int AthPSCreateHCICommand(u8 Opcode, u32 Param1,struct ps_cmd_packet *PSPatchPacket,u32 *index); |
134 | 134 | ||
135 | /* Function to reads the next character from the input buffer */ | 135 | /* Function to reads the next character from the input buffer */ |
136 | char AthReadChar(u8 *buffer, u32 len,u32 *pos) | 136 | char AthReadChar(u8 *buffer, u32 len,u32 *pos) |
@@ -764,7 +764,7 @@ static void LoadHeader(u8 *HCI_PS_Command,u8 opcode,int length,int index){ | |||
764 | 764 | ||
765 | ///////////////////////// | 765 | ///////////////////////// |
766 | // | 766 | // |
767 | int AthCreateCommandList(PSCmdPacket **HciPacketList, u32 *numPackets) | 767 | int AthCreateCommandList(struct ps_cmd_packet **HciPacketList, u32 *numPackets) |
768 | { | 768 | { |
769 | 769 | ||
770 | u8 count; | 770 | u8 count; |
@@ -785,8 +785,8 @@ int AthCreateCommandList(PSCmdPacket **HciPacketList, u32 *numPackets) | |||
785 | if(Patch_Count > 0) { | 785 | if(Patch_Count > 0) { |
786 | NumcmdEntry++; /* Patch Enable Command */ | 786 | NumcmdEntry++; /* Patch Enable Command */ |
787 | } | 787 | } |
788 | AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Num Cmd Entries %d Size %d \r\n",NumcmdEntry,(u32)sizeof(PSCmdPacket) * NumcmdEntry)); | 788 | AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("Num Cmd Entries %d Size %d \r\n",NumcmdEntry,(u32)sizeof(struct ps_cmd_packet) * NumcmdEntry)); |
789 | (*HciPacketList) = A_MALLOC(sizeof(PSCmdPacket) * NumcmdEntry); | 789 | (*HciPacketList) = A_MALLOC(sizeof(struct ps_cmd_packet) * NumcmdEntry); |
790 | if(NULL == *HciPacketList) { | 790 | if(NULL == *HciPacketList) { |
791 | AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("memory allocation failed \r\n")); | 791 | AR_DEBUG_PRINTF(ATH_DEBUG_ERR,("memory allocation failed \r\n")); |
792 | } | 792 | } |
@@ -833,7 +833,7 @@ int AthCreateCommandList(PSCmdPacket **HciPacketList, u32 *numPackets) | |||
833 | //////////////////////// | 833 | //////////////////////// |
834 | 834 | ||
835 | ///////////// | 835 | ///////////// |
836 | static int AthPSCreateHCICommand(u8 Opcode, u32 Param1,PSCmdPacket *PSPatchPacket,u32 *index) | 836 | static int AthPSCreateHCICommand(u8 Opcode, u32 Param1,struct ps_cmd_packet *PSPatchPacket,u32 *index) |
837 | { | 837 | { |
838 | u8 *HCI_PS_Command; | 838 | u8 *HCI_PS_Command; |
839 | u32 Length; | 839 | u32 Length; |
@@ -955,7 +955,7 @@ static int AthPSCreateHCICommand(u8 Opcode, u32 Param1,PSCmdPacket *PSPatchPacke | |||
955 | } | 955 | } |
956 | return 0; | 956 | return 0; |
957 | } | 957 | } |
958 | int AthFreeCommandList(PSCmdPacket **HciPacketList, u32 numPackets) | 958 | int AthFreeCommandList(struct ps_cmd_packet **HciPacketList, u32 numPackets) |
959 | { | 959 | { |
960 | int i; | 960 | int i; |
961 | if(*HciPacketList == NULL) { | 961 | if(*HciPacketList == NULL) { |
diff --git a/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.h b/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.h index 62e298deb255..9378efcd586e 100644 --- a/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.h +++ b/drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.h | |||
@@ -89,11 +89,11 @@ | |||
89 | 89 | ||
90 | 90 | ||
91 | 91 | ||
92 | typedef struct PSCmdPacket | 92 | struct ps_cmd_packet |
93 | { | 93 | { |
94 | u8 *Hcipacket; | 94 | u8 *Hcipacket; |
95 | int packetLen; | 95 | int packetLen; |
96 | } PSCmdPacket; | 96 | }; |
97 | 97 | ||
98 | /* Parses a Patch information buffer and store it in global structure */ | 98 | /* Parses a Patch information buffer and store it in global structure */ |
99 | int AthDoParsePatch(u8 *, u32 ); | 99 | int AthDoParsePatch(u8 *, u32 ); |
@@ -112,8 +112,8 @@ int AthDoParsePS(u8 *, u32 ); | |||
112 | * PS Tag Command(s) | 112 | * PS Tag Command(s) |
113 | * | 113 | * |
114 | */ | 114 | */ |
115 | int AthCreateCommandList(PSCmdPacket **, u32 *); | 115 | int AthCreateCommandList(struct ps_cmd_packet **, u32 *); |
116 | 116 | ||
117 | /* Cleanup the dynamically allicated HCI command list */ | 117 | /* Cleanup the dynamically allicated HCI command list */ |
118 | int AthFreeCommandList(PSCmdPacket **HciPacketList, u32 numPackets); | 118 | int AthFreeCommandList(struct ps_cmd_packet **HciPacketList, u32 numPackets); |
119 | #endif /* __AR3KPSPARSER_H */ | 119 | #endif /* __AR3KPSPARSER_H */ |