Skip to content

Commit

Permalink
ath6kl: remove-typedef HIF_DEVICE
Browse files Browse the repository at this point in the history
remove-typedef -s HIF_DEVICE \
	"struct hif_device" 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 a71f0bf commit 9dabb72
Show file tree
Hide file tree
Showing 19 changed files with 168 additions and 168 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/ath6kl/bmi/include/bmi_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
static bool bmiDone;

int
bmiBufferSend(HIF_DEVICE *device,
bmiBufferSend(struct hif_device *device,
u8 *buffer,
u32 length);

int
bmiBufferReceive(HIF_DEVICE *device,
bmiBufferReceive(struct hif_device *device,
u8 *buffer,
u32 length,
bool want_timeout);
Expand Down
40 changes: 20 additions & 20 deletions drivers/staging/ath6kl/bmi/src/bmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ BMICleanup(void)
}

int
BMIDone(HIF_DEVICE *device)
BMIDone(struct hif_device *device)
{
int status;
u32 cid;
Expand Down Expand Up @@ -142,7 +142,7 @@ BMIDone(HIF_DEVICE *device)
}

int
BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info)
BMIGetTargetInfo(struct hif_device *device, struct bmi_target_info *targ_info)
{
int status;
u32 cid;
Expand Down Expand Up @@ -201,7 +201,7 @@ BMIGetTargetInfo(HIF_DEVICE *device, struct bmi_target_info *targ_info)
}

int
BMIReadMemory(HIF_DEVICE *device,
BMIReadMemory(struct hif_device *device,
u32 address,
u8 *buffer,
u32 length)
Expand Down Expand Up @@ -257,7 +257,7 @@ BMIReadMemory(HIF_DEVICE *device,
}

int
BMIWriteMemory(HIF_DEVICE *device,
BMIWriteMemory(struct hif_device *device,
u32 address,
u8 *buffer,
u32 length)
Expand Down Expand Up @@ -322,7 +322,7 @@ BMIWriteMemory(HIF_DEVICE *device,
}

int
BMIExecute(HIF_DEVICE *device,
BMIExecute(struct hif_device *device,
u32 address,
u32 *param)
{
Expand Down Expand Up @@ -370,7 +370,7 @@ BMIExecute(HIF_DEVICE *device,
}

int
BMISetAppStart(HIF_DEVICE *device,
BMISetAppStart(struct hif_device *device,
u32 address)
{
u32 cid;
Expand Down Expand Up @@ -407,7 +407,7 @@ BMISetAppStart(HIF_DEVICE *device,
}

int
BMIReadSOCRegister(HIF_DEVICE *device,
BMIReadSOCRegister(struct hif_device *device,
u32 address,
u32 *param)
{
Expand Down Expand Up @@ -453,7 +453,7 @@ BMIReadSOCRegister(HIF_DEVICE *device,
}

int
BMIWriteSOCRegister(HIF_DEVICE *device,
BMIWriteSOCRegister(struct hif_device *device,
u32 address,
u32 param)
{
Expand Down Expand Up @@ -493,7 +493,7 @@ BMIWriteSOCRegister(HIF_DEVICE *device,
}

int
BMIrompatchInstall(HIF_DEVICE *device,
BMIrompatchInstall(struct hif_device *device,
u32 ROM_addr,
u32 RAM_addr,
u32 nbytes,
Expand Down Expand Up @@ -549,7 +549,7 @@ BMIrompatchInstall(HIF_DEVICE *device,
}

int
BMIrompatchUninstall(HIF_DEVICE *device,
BMIrompatchUninstall(struct hif_device *device,
u32 rompatch_id)
{
u32 cid;
Expand Down Expand Up @@ -586,7 +586,7 @@ BMIrompatchUninstall(HIF_DEVICE *device,
}

static int
_BMIrompatchChangeActivation(HIF_DEVICE *device,
_BMIrompatchChangeActivation(struct hif_device *device,
u32 rompatch_count,
u32 *rompatch_list,
u32 do_activate)
Expand Down Expand Up @@ -630,23 +630,23 @@ _BMIrompatchChangeActivation(HIF_DEVICE *device,
}

int
BMIrompatchActivate(HIF_DEVICE *device,
BMIrompatchActivate(struct hif_device *device,
u32 rompatch_count,
u32 *rompatch_list)
{
return _BMIrompatchChangeActivation(device, rompatch_count, rompatch_list, 1);
}

int
BMIrompatchDeactivate(HIF_DEVICE *device,
BMIrompatchDeactivate(struct hif_device *device,
u32 rompatch_count,
u32 *rompatch_list)
{
return _BMIrompatchChangeActivation(device, rompatch_count, rompatch_list, 0);
}

int
BMILZData(HIF_DEVICE *device,
BMILZData(struct hif_device *device,
u8 *buffer,
u32 length)
{
Expand Down Expand Up @@ -696,7 +696,7 @@ BMILZData(HIF_DEVICE *device,
}

int
BMILZStreamStart(HIF_DEVICE *device,
BMILZStreamStart(struct hif_device *device,
u32 address)
{
u32 cid;
Expand Down Expand Up @@ -734,7 +734,7 @@ BMILZStreamStart(HIF_DEVICE *device,

/* BMI Access routines */
int
bmiBufferSend(HIF_DEVICE *device,
bmiBufferSend(struct hif_device *device,
u8 *buffer,
u32 length)
{
Expand Down Expand Up @@ -782,7 +782,7 @@ bmiBufferSend(HIF_DEVICE *device,
}

int
bmiBufferReceive(HIF_DEVICE *device,
bmiBufferReceive(struct hif_device *device,
u8 *buffer,
u32 length,
bool want_timeout)
Expand Down Expand Up @@ -958,7 +958,7 @@ bmiBufferReceive(HIF_DEVICE *device,
}

int
BMIFastDownload(HIF_DEVICE *device, u32 address, u8 *buffer, u32 length)
BMIFastDownload(struct hif_device *device, u32 address, u8 *buffer, u32 length)
{
int status = A_ERROR;
u32 lastWord = 0;
Expand Down Expand Up @@ -998,13 +998,13 @@ BMIFastDownload(HIF_DEVICE *device, u32 address, u8 *buffer, u32 length)
}

int
BMIRawWrite(HIF_DEVICE *device, u8 *buffer, u32 length)
BMIRawWrite(struct hif_device *device, u8 *buffer, u32 length)
{
return bmiBufferSend(device, buffer, length);
}

int
BMIRawRead(HIF_DEVICE *device, u8 *buffer, u32 length, bool want_timeout)
BMIRawRead(struct hif_device *device, u8 *buffer, u32 length, bool want_timeout)
{
return bmiBufferReceive(device, buffer, length, want_timeout);
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ struct hif_device {
#define CMD53_FIXED_ADDRESS 1
#define CMD53_INCR_ADDRESS 2

BUS_REQUEST *hifAllocateBusRequest(HIF_DEVICE *device);
void hifFreeBusRequest(HIF_DEVICE *device, BUS_REQUEST *busrequest);
void AddToAsyncList(HIF_DEVICE *device, BUS_REQUEST *busrequest);
BUS_REQUEST *hifAllocateBusRequest(struct hif_device *device);
void hifFreeBusRequest(struct hif_device *device, BUS_REQUEST *busrequest);
void AddToAsyncList(struct hif_device *device, BUS_REQUEST *busrequest);

#ifdef HIF_LINUX_MMC_SCATTER_SUPPORT

Expand All @@ -100,26 +100,26 @@ void AddToAsyncList(HIF_DEVICE *device, BUS_REQUEST *busrequest);

struct hif_scatter_req_priv {
struct hif_scatter_req *pHifScatterReq; /* HIF scatter request with allocated entries */
HIF_DEVICE *device; /* this device */
struct hif_device *device; /* this device */
BUS_REQUEST *busrequest; /* request associated with request */
/* scatter list for linux */
struct scatterlist sgentries[MAX_SCATTER_ENTRIES_PER_REQ];
};

#define ATH_DEBUG_SCATTER ATH_DEBUG_MAKE_MODULE_MASK(0)

int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support_info *pInfo);
void CleanupHIFScatterResources(HIF_DEVICE *device);
int DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest);
int SetupHIFScatterSupport(struct hif_device *device, struct hif_device_scatter_support_info *pInfo);
void CleanupHIFScatterResources(struct hif_device *device);
int DoHifReadWriteScatter(struct hif_device *device, BUS_REQUEST *busrequest);

#else // HIF_LINUX_MMC_SCATTER_SUPPORT

static inline int SetupHIFScatterSupport(HIF_DEVICE *device, struct hif_device_scatter_support_info *pInfo)
static inline int SetupHIFScatterSupport(struct hif_device *device, struct hif_device_scatter_support_info *pInfo)
{
return A_ENOTSUP;
}

static inline int DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest)
static inline int DoHifReadWriteScatter(struct hif_device *device, BUS_REQUEST *busrequest)
{
return A_ENOTSUP;
}
Expand Down
Loading

0 comments on commit 9dabb72

Please sign in to comment.