ath6kl: remove-typedef HIF_SCATTER_ITEM
remove-typedef -s HIF_SCATTER_ITEM \ "struct hif_scatter_item" 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>
This commit is contained in:
parent
03210b8fbc
commit
f88902c01b
|
@ -306,7 +306,7 @@ int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support
|
|||
pReqPriv->device = device;
|
||||
/* allocate the scatter request */
|
||||
pReqPriv->pHifScatterReq = (HIF_SCATTER_REQ *)A_MALLOC(sizeof(HIF_SCATTER_REQ) +
|
||||
(MAX_SCATTER_ENTRIES_PER_REQ - 1) * (sizeof(HIF_SCATTER_ITEM)));
|
||||
(MAX_SCATTER_ENTRIES_PER_REQ - 1) * (sizeof(struct hif_scatter_item)));
|
||||
|
||||
if (NULL == pReqPriv->pHifScatterReq) {
|
||||
A_FREE(pReqPriv);
|
||||
|
|
|
@ -761,7 +761,7 @@ static int DevSetupVirtualScatterSupport(struct ar6k_device *pDev)
|
|||
2 * (A_GET_CACHE_LINE_BYTES()) + AR6K_MAX_TRANSFER_SIZE_PER_SCATTER;
|
||||
|
||||
sgreqSize = sizeof(HIF_SCATTER_REQ) +
|
||||
(AR6K_SCATTER_ENTRIES_PER_REQ - 1) * (sizeof(HIF_SCATTER_ITEM));
|
||||
(AR6K_SCATTER_ENTRIES_PER_REQ - 1) * (sizeof(struct hif_scatter_item));
|
||||
|
||||
for (i = 0; i < AR6K_SCATTER_REQS; i++) {
|
||||
/* allocate the scatter request, buffer info and the actual virtual buffer itself */
|
||||
|
|
|
@ -270,11 +270,11 @@ struct hif_device_irq_yield_params {
|
|||
};
|
||||
|
||||
|
||||
typedef struct _HIF_SCATTER_ITEM {
|
||||
struct hif_scatter_item {
|
||||
u8 *pBuffer; /* CPU accessible address of buffer */
|
||||
int Length; /* length of transfer to/from this buffer */
|
||||
void *pCallerContexts[2]; /* space for caller to insert a context associated with this item */
|
||||
} HIF_SCATTER_ITEM;
|
||||
};
|
||||
|
||||
struct _HIF_SCATTER_REQ;
|
||||
|
||||
|
@ -299,7 +299,7 @@ typedef struct _HIF_SCATTER_REQ {
|
|||
HIF_SCATTER_METHOD ScatterMethod; /* scatter method handled by HIF */
|
||||
void *HIFPrivate[4]; /* HIF private area */
|
||||
u8 *pScatterBounceBuffer; /* bounce buffer for upper layers to copy to/from */
|
||||
HIF_SCATTER_ITEM ScatterList[1]; /* start of scatter list */
|
||||
struct hif_scatter_item ScatterList[1]; /* start of scatter list */
|
||||
} HIF_SCATTER_REQ;
|
||||
|
||||
typedef HIF_SCATTER_REQ * ( *HIF_ALLOCATE_SCATTER_REQUEST)(HIF_DEVICE *device);
|
||||
|
|
Loading…
Reference in New Issue