ath6kl: remove-typedef HCI_TRANSPORT_CALLBACKS
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
55b0f0daa6
commit
ed8b361d88
@@ -36,10 +36,10 @@ struct common_credit_state_info {
|
|||||||
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 */
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
struct hci_transport_callbacks {
|
||||||
s32 (*setupTransport)(void *ar);
|
s32 (*setupTransport)(void *ar);
|
||||||
void (*cleanupTransport)(void *ar);
|
void (*cleanupTransport)(void *ar);
|
||||||
} HCI_TRANSPORT_CALLBACKS;
|
};
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
void *netDevice;
|
void *netDevice;
|
||||||
|
@@ -114,7 +114,7 @@ APTC_TRAFFIC_RECORD aptcTR;
|
|||||||
|
|
||||||
#ifdef EXPORT_HCI_BRIDGE_INTERFACE
|
#ifdef EXPORT_HCI_BRIDGE_INTERFACE
|
||||||
// callbacks registered by HCI transport driver
|
// callbacks registered by HCI transport driver
|
||||||
HCI_TRANSPORT_CALLBACKS ar6kHciTransCallbacks = { NULL };
|
struct hci_transport_callbacks ar6kHciTransCallbacks = { NULL };
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
unsigned int processDot11Hdr = 0;
|
unsigned int processDot11Hdr = 0;
|
||||||
|
@@ -455,10 +455,10 @@ void ar6k_cleanup_hci_pal(void *ar_p)
|
|||||||
* Register init and callback function with ar6k
|
* Register init and callback function with ar6k
|
||||||
* when PAL driver is a separate kernel module.
|
* 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)
|
static int __init pal_init_module(void)
|
||||||
{
|
{
|
||||||
HCI_TRANSPORT_CALLBACKS hciTransCallbacks;
|
struct hci_transport_callbacks hciTransCallbacks;
|
||||||
|
|
||||||
hciTransCallbacks.setupTransport = ar6k_setup_hci_pal;
|
hciTransCallbacks.setupTransport = ar6k_setup_hci_pal;
|
||||||
hciTransCallbacks.cleanupTransport = ar6k_cleanup_hci_pal;
|
hciTransCallbacks.cleanupTransport = ar6k_cleanup_hci_pal;
|
||||||
|
@@ -49,9 +49,9 @@ int (*_HCI_TransportRecvHCIEventSync)(HCI_TRANSPORT_HANDLE HciTrans,
|
|||||||
int (*_HCI_TransportSetBaudRate)(HCI_TRANSPORT_HANDLE HciTrans, u32 Baud);
|
int (*_HCI_TransportSetBaudRate)(HCI_TRANSPORT_HANDLE HciTrans, u32 Baud);
|
||||||
int (*_HCI_TransportEnablePowerMgmt)(HCI_TRANSPORT_HANDLE HciTrans, bool Enable);
|
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;
|
ar6kHciTransCallbacks = *hciTransCallbacks;
|
||||||
|
|
||||||
|
@@ -1119,7 +1119,7 @@ static int __init
|
|||||||
hcibridge_init_module(void)
|
hcibridge_init_module(void)
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
HCI_TRANSPORT_CALLBACKS hciTransCallbacks;
|
struct hci_transport_callbacks hciTransCallbacks;
|
||||||
|
|
||||||
hciTransCallbacks.setupTransport = ar6000_setup_hci;
|
hciTransCallbacks.setupTransport = ar6000_setup_hci;
|
||||||
hciTransCallbacks.cleanupTransport = ar6000_cleanup_hci;
|
hciTransCallbacks.cleanupTransport = ar6000_cleanup_hci;
|
||||||
|
@@ -61,7 +61,7 @@ extern int (*_HCI_TransportEnablePowerMgmt)(HCI_TRANSPORT_HANDLE HciTrans, bo
|
|||||||
_HCI_TransportEnablePowerMgmt((HciTrans), (Enable))
|
_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);
|
extern int ar6000_get_hif_dev(HIF_DEVICE *device, void *config);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user