mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-27 13:43:53 +00:00
ath6kl: remove-typedef HIF_SCATTER_REQ_PRIV
remove-typedef -s HIF_SCATTER_REQ_PRIV \ "struct hif_scatter_req_priv" 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
f88902c01b
commit
7038aac116
@ -47,8 +47,6 @@
|
||||
#define HIF_MBOX2_BLOCK_SIZE HIF_MBOX_BLOCK_SIZE
|
||||
#define HIF_MBOX3_BLOCK_SIZE HIF_MBOX_BLOCK_SIZE
|
||||
|
||||
struct _HIF_SCATTER_REQ_PRIV;
|
||||
|
||||
typedef struct bus_request {
|
||||
struct bus_request *next; /* link list of available requests */
|
||||
struct bus_request *inusenext; /* link list of in use requests */
|
||||
@ -59,7 +57,7 @@ typedef struct bus_request {
|
||||
u32 request;
|
||||
void *context;
|
||||
int status;
|
||||
struct _HIF_SCATTER_REQ_PRIV *pScatterReq; /* this request is a scatter request */
|
||||
struct hif_scatter_req_priv *pScatterReq; /* this request is a scatter request */
|
||||
} BUS_REQUEST;
|
||||
|
||||
struct hif_device {
|
||||
@ -100,13 +98,13 @@ void AddToAsyncList(HIF_DEVICE *device, BUS_REQUEST *busrequest);
|
||||
#define MAX_SCATTER_ENTRIES_PER_REQ 16
|
||||
#define MAX_SCATTER_REQ_TRANSFER_SIZE 32*1024
|
||||
|
||||
typedef struct _HIF_SCATTER_REQ_PRIV {
|
||||
struct hif_scatter_req_priv {
|
||||
HIF_SCATTER_REQ *pHifScatterReq; /* HIF scatter request with allocated entries */
|
||||
HIF_DEVICE *device; /* this device */
|
||||
BUS_REQUEST *busrequest; /* request associated with request */
|
||||
/* scatter list for linux */
|
||||
struct scatterlist sgentries[MAX_SCATTER_ENTRIES_PER_REQ];
|
||||
} HIF_SCATTER_REQ_PRIV;
|
||||
};
|
||||
|
||||
#define ATH_DEBUG_SCATTER ATH_DEBUG_MAKE_MODULE_MASK(0)
|
||||
|
||||
|
@ -87,7 +87,7 @@ int DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest)
|
||||
struct mmc_request mmcreq;
|
||||
struct mmc_command cmd;
|
||||
struct mmc_data data;
|
||||
HIF_SCATTER_REQ_PRIV *pReqPriv;
|
||||
struct hif_scatter_req_priv *pReqPriv;
|
||||
HIF_SCATTER_REQ *pReq;
|
||||
int status = 0;
|
||||
struct scatterlist *pSg;
|
||||
@ -203,7 +203,7 @@ static int HifReadWriteScatter(HIF_DEVICE *device, HIF_SCATTER_REQ *pReq)
|
||||
{
|
||||
int status = A_EINVAL;
|
||||
u32 request = pReq->Request;
|
||||
HIF_SCATTER_REQ_PRIV *pReqPriv = (HIF_SCATTER_REQ_PRIV *)pReq->HIFPrivate[0];
|
||||
struct hif_scatter_req_priv *pReqPriv = (struct hif_scatter_req_priv *)pReq->HIFPrivate[0];
|
||||
|
||||
do {
|
||||
|
||||
@ -279,7 +279,7 @@ int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support
|
||||
{
|
||||
int status = A_ERROR;
|
||||
int i;
|
||||
HIF_SCATTER_REQ_PRIV *pReqPriv;
|
||||
struct hif_scatter_req_priv *pReqPriv;
|
||||
BUS_REQUEST *busrequest;
|
||||
|
||||
do {
|
||||
@ -297,11 +297,11 @@ int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support
|
||||
|
||||
for (i = 0; i < MAX_SCATTER_REQUESTS; i++) {
|
||||
/* allocate the private request blob */
|
||||
pReqPriv = (HIF_SCATTER_REQ_PRIV *)A_MALLOC(sizeof(HIF_SCATTER_REQ_PRIV));
|
||||
pReqPriv = (struct hif_scatter_req_priv *)A_MALLOC(sizeof(struct hif_scatter_req_priv));
|
||||
if (NULL == pReqPriv) {
|
||||
break;
|
||||
}
|
||||
A_MEMZERO(pReqPriv, sizeof(HIF_SCATTER_REQ_PRIV));
|
||||
A_MEMZERO(pReqPriv, sizeof(struct hif_scatter_req_priv));
|
||||
/* save the device instance*/
|
||||
pReqPriv->device = device;
|
||||
/* allocate the scatter request */
|
||||
@ -358,7 +358,7 @@ int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support
|
||||
/* clean up scatter support */
|
||||
void CleanupHIFScatterResources(HIF_DEVICE *device)
|
||||
{
|
||||
HIF_SCATTER_REQ_PRIV *pReqPriv;
|
||||
struct hif_scatter_req_priv *pReqPriv;
|
||||
HIF_SCATTER_REQ *pReq;
|
||||
|
||||
/* empty the free list */
|
||||
@ -371,7 +371,7 @@ void CleanupHIFScatterResources(HIF_DEVICE *device)
|
||||
break;
|
||||
}
|
||||
|
||||
pReqPriv = (HIF_SCATTER_REQ_PRIV *)pReq->HIFPrivate[0];
|
||||
pReqPriv = (struct hif_scatter_req_priv *)pReq->HIFPrivate[0];
|
||||
A_ASSERT(pReqPriv != NULL);
|
||||
|
||||
if (pReqPriv->busrequest != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user