Skip to content

Commit

Permalink
ath6kl: remove-typedef HCI_TRANSPORT_CALLBACKS
Browse files Browse the repository at this point in the history
remove-typedef -s HCI_TRANSPORT_CALLBACKS \
	"struct hci_transport_callbacks" 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 55b0f0d commit ed8b361
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/ath6kl/include/common_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ struct common_credit_state_info {
HTC_ENDPOINT_CREDIT_DIST *pLowestPriEpDist; /* pointer to the lowest priority endpoint dist struct */
};

typedef struct {
struct hci_transport_callbacks {
s32 (*setupTransport)(void *ar);
void (*cleanupTransport)(void *ar);
} HCI_TRANSPORT_CALLBACKS;
};

typedef struct {
void *netDevice;
Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/ath6kl/os/linux/ar6000_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ APTC_TRAFFIC_RECORD aptcTR;

#ifdef EXPORT_HCI_BRIDGE_INTERFACE
// callbacks registered by HCI transport driver
HCI_TRANSPORT_CALLBACKS ar6kHciTransCallbacks = { NULL };
struct hci_transport_callbacks ar6kHciTransCallbacks = { NULL };
#endif

unsigned int processDot11Hdr = 0;
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/ath6kl/os/linux/ar6k_pal.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,10 +455,10 @@ void ar6k_cleanup_hci_pal(void *ar_p)
* Register init and callback function with ar6k
* when PAL driver is a separate kernel module.
****************************************************/
int ar6k_register_hci_pal(HCI_TRANSPORT_CALLBACKS *hciTransCallbacks);
int ar6k_register_hci_pal(struct hci_transport_callbacks *hciTransCallbacks);
static int __init pal_init_module(void)
{
HCI_TRANSPORT_CALLBACKS hciTransCallbacks;
struct hci_transport_callbacks hciTransCallbacks;

hciTransCallbacks.setupTransport = ar6k_setup_hci_pal;
hciTransCallbacks.cleanupTransport = ar6k_cleanup_hci_pal;
Expand Down
4 changes: 2 additions & 2 deletions drivers/staging/ath6kl/os/linux/export_hci_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ int (*_HCI_TransportRecvHCIEventSync)(HCI_TRANSPORT_HANDLE HciTrans,
int (*_HCI_TransportSetBaudRate)(HCI_TRANSPORT_HANDLE HciTrans, u32 Baud);
int (*_HCI_TransportEnablePowerMgmt)(HCI_TRANSPORT_HANDLE HciTrans, bool Enable);

extern HCI_TRANSPORT_CALLBACKS ar6kHciTransCallbacks;
extern struct hci_transport_callbacks ar6kHciTransCallbacks;

int ar6000_register_hci_transport(HCI_TRANSPORT_CALLBACKS *hciTransCallbacks)
int ar6000_register_hci_transport(struct hci_transport_callbacks *hciTransCallbacks)
{
ar6kHciTransCallbacks = *hciTransCallbacks;

Expand Down
2 changes: 1 addition & 1 deletion drivers/staging/ath6kl/os/linux/hci_bridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ static int __init
hcibridge_init_module(void)
{
int status;
HCI_TRANSPORT_CALLBACKS hciTransCallbacks;
struct hci_transport_callbacks hciTransCallbacks;

hciTransCallbacks.setupTransport = ar6000_setup_hci;
hciTransCallbacks.cleanupTransport = ar6000_cleanup_hci;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extern int (*_HCI_TransportEnablePowerMgmt)(HCI_TRANSPORT_HANDLE HciTrans, bo
_HCI_TransportEnablePowerMgmt((HciTrans), (Enable))


extern int ar6000_register_hci_transport(HCI_TRANSPORT_CALLBACKS *hciTransCallbacks);
extern int ar6000_register_hci_transport(struct hci_transport_callbacks *hciTransCallbacks);

extern int ar6000_get_hif_dev(HIF_DEVICE *device, void *config);

Expand Down

0 comments on commit ed8b361

Please sign in to comment.