Commit 84fd335f authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Greg Kroah-Hartman

staging: ath6kl: remove-typedef COMMON_CREDIT_STATE_INFO

remove-typedef -s COMMON_CREDIT_STATE_INFO \
	"struct common_credit_state_info" drivers/staging/ath6kl/

Cc: Naveen Singh <naveen.singh@atheros.com>
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent d184f4a0
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
/* structure that is the state information for the default credit distribution callback /* structure that is the state information for the default credit distribution callback
* drivers should instantiate (zero-init as well) this structure in their driver instance * drivers should instantiate (zero-init as well) this structure in their driver instance
* and pass it as a context to the HTC credit distribution functions */ * and pass it as a context to the HTC credit distribution functions */
typedef struct _COMMON_CREDIT_STATE_INFO { struct common_credit_state_info {
int TotalAvailableCredits; /* total credits in the system at startup */ int TotalAvailableCredits; /* total credits in the system at startup */
int CurrentFreeCredits; /* credits available in the pool that have not been int CurrentFreeCredits; /* credits available in the pool that have not been
given out to endpoints */ given out to endpoints */
HTC_ENDPOINT_CREDIT_DIST *pLowestPriEpDist; /* pointer to the lowest priority endpoint dist struct */ HTC_ENDPOINT_CREDIT_DIST *pLowestPriEpDist; /* pointer to the lowest priority endpoint dist struct */
} COMMON_CREDIT_STATE_INFO; };
typedef struct { typedef struct {
s32 (*setupTransport)(void *ar); s32 (*setupTransport)(void *ar);
...@@ -64,7 +64,7 @@ extern "C" { ...@@ -64,7 +64,7 @@ extern "C" {
#endif #endif
/* OS-independent APIs */ /* OS-independent APIs */
int ar6000_setup_credit_dist(HTC_HANDLE HTCHandle, COMMON_CREDIT_STATE_INFO *pCredInfo); int ar6000_setup_credit_dist(HTC_HANDLE HTCHandle, struct common_credit_state_info *pCredInfo);
int ar6000_ReadRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data); int ar6000_ReadRegDiag(HIF_DEVICE *hifDevice, u32 *address, u32 *data);
......
...@@ -41,14 +41,14 @@ ...@@ -41,14 +41,14 @@
#define DATA_SVCS_USED 4 #define DATA_SVCS_USED 4
#endif #endif
static void RedistributeCredits(COMMON_CREDIT_STATE_INFO *pCredInfo, static void RedistributeCredits(struct common_credit_state_info *pCredInfo,
HTC_ENDPOINT_CREDIT_DIST *pEPDistList); HTC_ENDPOINT_CREDIT_DIST *pEPDistList);
static void SeekCredits(COMMON_CREDIT_STATE_INFO *pCredInfo, static void SeekCredits(struct common_credit_state_info *pCredInfo,
HTC_ENDPOINT_CREDIT_DIST *pEPDistList); HTC_ENDPOINT_CREDIT_DIST *pEPDistList);
/* reduce an ep's credits back to a set limit */ /* reduce an ep's credits back to a set limit */
static INLINE void ReduceCredits(COMMON_CREDIT_STATE_INFO *pCredInfo, static INLINE void ReduceCredits(struct common_credit_state_info *pCredInfo,
HTC_ENDPOINT_CREDIT_DIST *pEpDist, HTC_ENDPOINT_CREDIT_DIST *pEpDist,
int Limit) int Limit)
{ {
...@@ -86,7 +86,7 @@ static void ar6000_credit_init(void *Context, ...@@ -86,7 +86,7 @@ static void ar6000_credit_init(void *Context,
{ {
HTC_ENDPOINT_CREDIT_DIST *pCurEpDist; HTC_ENDPOINT_CREDIT_DIST *pCurEpDist;
int count; int count;
COMMON_CREDIT_STATE_INFO *pCredInfo = (COMMON_CREDIT_STATE_INFO *)Context; struct common_credit_state_info *pCredInfo = (struct common_credit_state_info *)Context;
pCredInfo->CurrentFreeCredits = TotalCredits; pCredInfo->CurrentFreeCredits = TotalCredits;
pCredInfo->TotalAvailableCredits = TotalCredits; pCredInfo->TotalAvailableCredits = TotalCredits;
...@@ -179,7 +179,7 @@ static void ar6000_credit_distribute(void *Context, ...@@ -179,7 +179,7 @@ static void ar6000_credit_distribute(void *Context,
HTC_CREDIT_DIST_REASON Reason) HTC_CREDIT_DIST_REASON Reason)
{ {
HTC_ENDPOINT_CREDIT_DIST *pCurEpDist; HTC_ENDPOINT_CREDIT_DIST *pCurEpDist;
COMMON_CREDIT_STATE_INFO *pCredInfo = (COMMON_CREDIT_STATE_INFO *)Context; struct common_credit_state_info *pCredInfo = (struct common_credit_state_info *)Context;
switch (Reason) { switch (Reason) {
case HTC_CREDIT_DIST_SEND_COMPLETE : case HTC_CREDIT_DIST_SEND_COMPLETE :
...@@ -243,7 +243,7 @@ static void ar6000_credit_distribute(void *Context, ...@@ -243,7 +243,7 @@ static void ar6000_credit_distribute(void *Context,
} }
/* redistribute credits based on activity change */ /* redistribute credits based on activity change */
static void RedistributeCredits(COMMON_CREDIT_STATE_INFO *pCredInfo, static void RedistributeCredits(struct common_credit_state_info *pCredInfo,
HTC_ENDPOINT_CREDIT_DIST *pEPDistList) HTC_ENDPOINT_CREDIT_DIST *pEPDistList)
{ {
HTC_ENDPOINT_CREDIT_DIST *pCurEpDist = pEPDistList; HTC_ENDPOINT_CREDIT_DIST *pCurEpDist = pEPDistList;
...@@ -283,7 +283,7 @@ static void RedistributeCredits(COMMON_CREDIT_STATE_INFO *pCredInfo, ...@@ -283,7 +283,7 @@ static void RedistributeCredits(COMMON_CREDIT_STATE_INFO *pCredInfo,
} }
/* HTC has an endpoint that needs credits, pEPDist is the endpoint in question */ /* HTC has an endpoint that needs credits, pEPDist is the endpoint in question */
static void SeekCredits(COMMON_CREDIT_STATE_INFO *pCredInfo, static void SeekCredits(struct common_credit_state_info *pCredInfo,
HTC_ENDPOINT_CREDIT_DIST *pEPDist) HTC_ENDPOINT_CREDIT_DIST *pEPDist)
{ {
HTC_ENDPOINT_CREDIT_DIST *pCurEpDist; HTC_ENDPOINT_CREDIT_DIST *pCurEpDist;
...@@ -393,11 +393,11 @@ static void SeekCredits(COMMON_CREDIT_STATE_INFO *pCredInfo, ...@@ -393,11 +393,11 @@ static void SeekCredits(COMMON_CREDIT_STATE_INFO *pCredInfo,
} }
/* initialize and setup credit distribution */ /* initialize and setup credit distribution */
int ar6000_setup_credit_dist(HTC_HANDLE HTCHandle, COMMON_CREDIT_STATE_INFO *pCredInfo) int ar6000_setup_credit_dist(HTC_HANDLE HTCHandle, struct common_credit_state_info *pCredInfo)
{ {
HTC_SERVICE_ID servicepriority[5]; HTC_SERVICE_ID servicepriority[5];
A_MEMZERO(pCredInfo,sizeof(COMMON_CREDIT_STATE_INFO)); A_MEMZERO(pCredInfo,sizeof(struct common_credit_state_info));
servicepriority[0] = WMI_CONTROL_SVC; /* highest */ servicepriority[0] = WMI_CONTROL_SVC; /* highest */
servicepriority[1] = WMI_DATA_VO_SVC; servicepriority[1] = WMI_DATA_VO_SVC;
......
...@@ -550,7 +550,7 @@ typedef struct ar6_softc { ...@@ -550,7 +550,7 @@ typedef struct ar6_softc {
bool arNetQueueStopped; bool arNetQueueStopped;
bool arRawIfInit; bool arRawIfInit;
int arDeviceIndex; int arDeviceIndex;
COMMON_CREDIT_STATE_INFO arCreditStateInfo; struct common_credit_state_info arCreditStateInfo;
bool arWMIControlEpFull; bool arWMIControlEpFull;
bool dbgLogFetchInProgress; bool dbgLogFetchInProgress;
u8 log_buffer[DBGLOG_HOST_LOG_BUFFER_SIZE]; u8 log_buffer[DBGLOG_HOST_LOG_BUFFER_SIZE];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment