Commit 854019a3 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Greg Kroah-Hartman

staging: ath6kl: remove-typedef AR3K_CONFIG_INFO

remove-typedef -s AR3K_CONFIG_INFO \
	"struct ar3k_config_info" drivers/staging/ath6kl/

Cc: Naveen Singh <naveen.singh@atheros.com>
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ebb1f944
...@@ -38,7 +38,7 @@ extern "C" { ...@@ -38,7 +38,7 @@ extern "C" {
#define AR3K_CONFIG_FLAG_SET_AR6K_SCALE_STEP (1 << 3) #define AR3K_CONFIG_FLAG_SET_AR6K_SCALE_STEP (1 << 3)
typedef struct { struct ar3k_config_info {
u32 Flags; /* config flags */ u32 Flags; /* config flags */
void *pHCIDev; /* HCI bridge device */ void *pHCIDev; /* HCI bridge device */
HCI_TRANSPORT_PROPERTIES *pHCIProps; /* HCI bridge props */ HCI_TRANSPORT_PROPERTIES *pHCIProps; /* HCI bridge props */
...@@ -52,9 +52,9 @@ typedef struct { ...@@ -52,9 +52,9 @@ typedef struct {
u16 IdleTimeout; /* TLPM idle timeout */ u16 IdleTimeout; /* TLPM idle timeout */
u16 WakeupTimeout; /* TLPM wakeup timeout */ u16 WakeupTimeout; /* TLPM wakeup timeout */
u8 bdaddr[6]; /* Bluetooth device address */ u8 bdaddr[6]; /* Bluetooth device address */
} AR3K_CONFIG_INFO; };
int AR3KConfigure(AR3K_CONFIG_INFO *pConfigInfo); int AR3KConfigure(struct ar3k_config_info *pConfigInfo);
int AR3KConfigureExit(void *config); int AR3KConfigureExit(void *config);
......
...@@ -47,9 +47,9 @@ ...@@ -47,9 +47,9 @@
#define HCI_MAX_EVT_RECV_LENGTH 257 #define HCI_MAX_EVT_RECV_LENGTH 257
#define EXIT_MIN_BOOT_COMMAND_STATUS_OFFSET 5 #define EXIT_MIN_BOOT_COMMAND_STATUS_OFFSET 5
int AthPSInitialize(AR3K_CONFIG_INFO *hdev); int AthPSInitialize(struct ar3k_config_info *hdev);
static int SendHCICommand(AR3K_CONFIG_INFO *pConfig, static int SendHCICommand(struct ar3k_config_info *pConfig,
u8 *pBuffer, u8 *pBuffer,
int Length) int Length)
{ {
...@@ -84,7 +84,7 @@ static int SendHCICommand(AR3K_CONFIG_INFO *pConfig, ...@@ -84,7 +84,7 @@ static int SendHCICommand(AR3K_CONFIG_INFO *pConfig,
return status; return status;
} }
static int RecvHCIEvent(AR3K_CONFIG_INFO *pConfig, static int RecvHCIEvent(struct ar3k_config_info *pConfig,
u8 *pBuffer, u8 *pBuffer,
int *pLength) int *pLength)
{ {
...@@ -122,7 +122,7 @@ static int RecvHCIEvent(AR3K_CONFIG_INFO *pConfig, ...@@ -122,7 +122,7 @@ static int RecvHCIEvent(AR3K_CONFIG_INFO *pConfig,
return status; return status;
} }
int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig, int SendHCICommandWaitCommandComplete(struct ar3k_config_info *pConfig,
u8 *pHCICommand, u8 *pHCICommand,
int CmdLength, int CmdLength,
u8 **ppEventBuffer, u8 **ppEventBuffer,
...@@ -209,7 +209,7 @@ int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig, ...@@ -209,7 +209,7 @@ int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig,
return status; return status;
} }
static int AR3KConfigureHCIBaud(AR3K_CONFIG_INFO *pConfig) static int AR3KConfigureHCIBaud(struct ar3k_config_info *pConfig)
{ {
int status = 0; int status = 0;
u8 hciBaudChangeCommand[] = {0x0c,0xfc,0x2,0,0}; u8 hciBaudChangeCommand[] = {0x0c,0xfc,0x2,0,0};
...@@ -274,7 +274,7 @@ static int AR3KConfigureHCIBaud(AR3K_CONFIG_INFO *pConfig) ...@@ -274,7 +274,7 @@ static int AR3KConfigureHCIBaud(AR3K_CONFIG_INFO *pConfig)
return status; return status;
} }
static int AR3KExitMinBoot(AR3K_CONFIG_INFO *pConfig) static int AR3KExitMinBoot(struct ar3k_config_info *pConfig)
{ {
int status; int status;
char exitMinBootCmd[] = {0x25,0xFC,0x0c,0x03,0x00,0x00,0x00,0x00,0x00,0x00, char exitMinBootCmd[] = {0x25,0xFC,0x0c,0x03,0x00,0x00,0x00,0x00,0x00,0x00,
...@@ -310,7 +310,7 @@ static int AR3KExitMinBoot(AR3K_CONFIG_INFO *pConfig) ...@@ -310,7 +310,7 @@ static int AR3KExitMinBoot(AR3K_CONFIG_INFO *pConfig)
return status; return status;
} }
static int AR3KConfigureSendHCIReset(AR3K_CONFIG_INFO *pConfig) static int AR3KConfigureSendHCIReset(struct ar3k_config_info *pConfig)
{ {
int status = 0; int status = 0;
u8 hciResetCommand[] = {0x03,0x0c,0x0}; u8 hciResetCommand[] = {0x03,0x0c,0x0};
...@@ -334,7 +334,7 @@ static int AR3KConfigureSendHCIReset(AR3K_CONFIG_INFO *pConfig) ...@@ -334,7 +334,7 @@ static int AR3KConfigureSendHCIReset(AR3K_CONFIG_INFO *pConfig)
return status; return status;
} }
static int AR3KEnableTLPM(AR3K_CONFIG_INFO *pConfig) static int AR3KEnableTLPM(struct ar3k_config_info *pConfig)
{ {
int status; int status;
/* AR3K vendor specific command for Host Wakeup Config */ /* AR3K vendor specific command for Host Wakeup Config */
...@@ -453,7 +453,7 @@ static int AR3KEnableTLPM(AR3K_CONFIG_INFO *pConfig) ...@@ -453,7 +453,7 @@ static int AR3KEnableTLPM(AR3K_CONFIG_INFO *pConfig)
return status; return status;
} }
int AR3KConfigure(AR3K_CONFIG_INFO *pConfig) int AR3KConfigure(struct ar3k_config_info *pConfig)
{ {
int status = 0; int status = 0;
...@@ -524,7 +524,7 @@ int AR3KConfigure(AR3K_CONFIG_INFO *pConfig) ...@@ -524,7 +524,7 @@ int AR3KConfigure(AR3K_CONFIG_INFO *pConfig)
int AR3KConfigureExit(void *config) int AR3KConfigureExit(void *config)
{ {
int status = 0; int status = 0;
AR3K_CONFIG_INFO *pConfig = (AR3K_CONFIG_INFO *)config; struct ar3k_config_info *pConfig = (struct ar3k_config_info *)config;
AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("AR3K Config: Cleaning up AR3K ...\n")); AR_DEBUG_PRINTF(ATH_DEBUG_INFO,("AR3K Config: Cleaning up AR3K ...\n"));
......
...@@ -43,10 +43,10 @@ typedef struct { ...@@ -43,10 +43,10 @@ typedef struct {
PSCmdPacket *HciCmdList; PSCmdPacket *HciCmdList;
u32 num_packets; u32 num_packets;
AR3K_CONFIG_INFO *dev; struct ar3k_config_info *dev;
}HciCommandListParam; }HciCommandListParam;
int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig, int SendHCICommandWaitCommandComplete(struct ar3k_config_info *pConfig,
u8 *pHCICommand, u8 *pHCICommand,
int CmdLength, int CmdLength,
u8 **ppEventBuffer, u8 **ppEventBuffer,
...@@ -56,8 +56,8 @@ u32 Rom_Version; ...@@ -56,8 +56,8 @@ u32 Rom_Version;
u32 Build_Version; u32 Build_Version;
extern bool BDADDR; extern bool BDADDR;
int getDeviceType(AR3K_CONFIG_INFO *pConfig, u32 *code); int getDeviceType(struct ar3k_config_info *pConfig, u32 *code);
int ReadVersionInfo(AR3K_CONFIG_INFO *pConfig); int ReadVersionInfo(struct ar3k_config_info *pConfig);
#ifndef HCI_TRANSPORT_SDIO #ifndef HCI_TRANSPORT_SDIO
DECLARE_WAIT_QUEUE_HEAD(PsCompleteEvent); DECLARE_WAIT_QUEUE_HEAD(PsCompleteEvent);
...@@ -70,7 +70,7 @@ int PSHciWritepacket(struct hci_dev*,u8* Data, u32 len); ...@@ -70,7 +70,7 @@ int PSHciWritepacket(struct hci_dev*,u8* Data, u32 len);
extern char *bdaddr; extern char *bdaddr;
#endif /* HCI_TRANSPORT_SDIO */ #endif /* HCI_TRANSPORT_SDIO */
int write_bdaddr(AR3K_CONFIG_INFO *pConfig,u8 *bdaddr,int type); int write_bdaddr(struct ar3k_config_info *pConfig,u8 *bdaddr,int type);
int PSSendOps(void *arg); int PSSendOps(void *arg);
...@@ -91,7 +91,7 @@ void Hci_log(u8 * log_string,u8 *data,u32 len) ...@@ -91,7 +91,7 @@ void Hci_log(u8 * log_string,u8 *data,u32 len)
int AthPSInitialize(AR3K_CONFIG_INFO *hdev) int AthPSInitialize(struct ar3k_config_info *hdev)
{ {
int status = 0; int status = 0;
if(hdev == NULL) { if(hdev == NULL) {
...@@ -147,7 +147,7 @@ int PSSendOps(void *arg) ...@@ -147,7 +147,7 @@ int PSSendOps(void *arg)
u8 *path = NULL; u8 *path = NULL;
u8 *config_path = NULL; u8 *config_path = NULL;
u8 config_bdaddr[MAX_BDADDR_FORMAT_LENGTH]; u8 config_bdaddr[MAX_BDADDR_FORMAT_LENGTH];
AR3K_CONFIG_INFO *hdev = (AR3K_CONFIG_INFO*)arg; struct ar3k_config_info *hdev = (struct ar3k_config_info*)arg;
struct device *firmwareDev = NULL; struct device *firmwareDev = NULL;
status = 0; status = 0;
HciCmdList = NULL; HciCmdList = NULL;
...@@ -389,7 +389,7 @@ int PSSendOps(void *arg) ...@@ -389,7 +389,7 @@ int PSSendOps(void *arg)
* with a HCI Command Complete event. * with a HCI Command Complete event.
* For HCI SDIO transport, this will be internally defined. * For HCI SDIO transport, this will be internally defined.
*/ */
int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig, int SendHCICommandWaitCommandComplete(struct ar3k_config_info *pConfig,
u8 *pHCICommand, u8 *pHCICommand,
int CmdLength, int CmdLength,
u8 **ppEventBuffer, u8 **ppEventBuffer,
...@@ -481,7 +481,7 @@ int str2ba(unsigned char *str_bdaddr,unsigned char *bdaddr) ...@@ -481,7 +481,7 @@ int str2ba(unsigned char *str_bdaddr,unsigned char *bdaddr)
return 0; return 0;
} }
int write_bdaddr(AR3K_CONFIG_INFO *pConfig,u8 *bdaddr,int type) int write_bdaddr(struct ar3k_config_info *pConfig,u8 *bdaddr,int type)
{ {
u8 bdaddr_cmd[] = { 0x0B, 0xFC, 0x0A, 0x01, 0x01, u8 bdaddr_cmd[] = { 0x0B, 0xFC, 0x0A, 0x01, 0x01,
0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; 0x00, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
...@@ -516,7 +516,7 @@ int write_bdaddr(AR3K_CONFIG_INFO *pConfig,u8 *bdaddr,int type) ...@@ -516,7 +516,7 @@ int write_bdaddr(AR3K_CONFIG_INFO *pConfig,u8 *bdaddr,int type)
return result; return result;
} }
int ReadVersionInfo(AR3K_CONFIG_INFO *pConfig) int ReadVersionInfo(struct ar3k_config_info *pConfig)
{ {
u8 hciCommand[] = {0x1E,0xfc,0x00}; u8 hciCommand[] = {0x1E,0xfc,0x00};
u8 *event; u8 *event;
...@@ -531,7 +531,7 @@ int ReadVersionInfo(AR3K_CONFIG_INFO *pConfig) ...@@ -531,7 +531,7 @@ int ReadVersionInfo(AR3K_CONFIG_INFO *pConfig)
} }
return result; return result;
} }
int getDeviceType(AR3K_CONFIG_INFO *pConfig, u32 *code) int getDeviceType(struct ar3k_config_info *pConfig, u32 *code)
{ {
u8 hciCommand[] = {0x05,0xfc,0x05,0x00,0x00,0x00,0x00,0x04}; u8 hciCommand[] = {0x05,0xfc,0x05,0x00,0x00,0x00,0x00,0x04};
u8 *event; u8 *event;
......
...@@ -64,12 +64,12 @@ ...@@ -64,12 +64,12 @@
#ifndef HCI_TRANSPORT_SDIO #ifndef HCI_TRANSPORT_SDIO
#define AR3K_CONFIG_INFO struct hci_dev #define struct ar3k_config_info struct hci_dev
extern wait_queue_head_t HciEvent; extern wait_queue_head_t HciEvent;
extern wait_queue_t Eventwait; extern wait_queue_t Eventwait;
extern u8 *HciEventpacket; extern u8 *HciEventpacket;
#endif /* #ifndef HCI_TRANSPORT_SDIO */ #endif /* #ifndef HCI_TRANSPORT_SDIO */
int AthPSInitialize(AR3K_CONFIG_INFO *hdev); int AthPSInitialize(struct ar3k_config_info *hdev);
int ReadPSEvent(u8* Data); int ReadPSEvent(u8* Data);
#endif /* __AR3KPSCONFIG_H */ #endif /* __AR3KPSCONFIG_H */
...@@ -2011,7 +2011,7 @@ ar6000_stop_endpoint(struct net_device *dev, bool keepprofile, bool getdbglogs) ...@@ -2011,7 +2011,7 @@ ar6000_stop_endpoint(struct net_device *dev, bool keepprofile, bool getdbglogs)
#else #else
// FIXME: workaround to reset BT's UART baud rate to default // FIXME: workaround to reset BT's UART baud rate to default
if (NULL != ar->exitCallback) { if (NULL != ar->exitCallback) {
AR3K_CONFIG_INFO ar3kconfig; struct ar3k_config_info ar3kconfig;
int status; int status;
A_MEMZERO(&ar3kconfig,sizeof(ar3kconfig)); A_MEMZERO(&ar3kconfig,sizeof(ar3kconfig));
......
...@@ -100,7 +100,7 @@ typedef struct { ...@@ -100,7 +100,7 @@ typedef struct {
#define HCI_GET_OP_CODE(p) (((u16)((p)[1])) << 8) | ((u16)((p)[0])) #define HCI_GET_OP_CODE(p) (((u16)((p)[1])) << 8) | ((u16)((p)[0]))
extern unsigned int setupbtdev; extern unsigned int setupbtdev;
AR3K_CONFIG_INFO ar3kconfig; struct ar3k_config_info ar3kconfig;
#ifdef EXPORT_HCI_BRIDGE_INTERFACE #ifdef EXPORT_HCI_BRIDGE_INTERFACE
AR6K_HCI_BRIDGE_INFO *g_pHcidevInfo; AR6K_HCI_BRIDGE_INFO *g_pHcidevInfo;
...@@ -222,7 +222,7 @@ static int ar6000_hci_transport_ready(HCI_TRANSPORT_HANDLE HCIHandle, ...@@ -222,7 +222,7 @@ static int ar6000_hci_transport_ready(HCI_TRANSPORT_HANDLE HCIHandle,
AR6K_HCI_BRIDGE_INFO *pHcidevInfo = (AR6K_HCI_BRIDGE_INFO *)pContext; AR6K_HCI_BRIDGE_INFO *pHcidevInfo = (AR6K_HCI_BRIDGE_INFO *)pContext;
int status; int status;
u32 address, hci_uart_pwr_mgmt_params; u32 address, hci_uart_pwr_mgmt_params;
// AR3K_CONFIG_INFO ar3kconfig; // struct ar3k_config_info ar3kconfig;
pHcidevInfo->pHCIDev = HCIHandle; pHcidevInfo->pHCIDev = HCIHandle;
...@@ -667,7 +667,7 @@ int hci_test_send(AR_SOFTC_T *ar, struct sk_buff *skb) ...@@ -667,7 +667,7 @@ int hci_test_send(AR_SOFTC_T *ar, struct sk_buff *skb)
void ar6000_set_default_ar3kconfig(AR_SOFTC_T *ar, void *ar3kconfig) void ar6000_set_default_ar3kconfig(AR_SOFTC_T *ar, void *ar3kconfig)
{ {
AR6K_HCI_BRIDGE_INFO *pHcidevInfo = (AR6K_HCI_BRIDGE_INFO *)ar->hcidev_info; AR6K_HCI_BRIDGE_INFO *pHcidevInfo = (AR6K_HCI_BRIDGE_INFO *)ar->hcidev_info;
AR3K_CONFIG_INFO *config = (AR3K_CONFIG_INFO *)ar3kconfig; struct ar3k_config_info *config = (struct ar3k_config_info *)ar3kconfig;
config->pHCIDev = pHcidevInfo->pHCIDev; config->pHCIDev = pHcidevInfo->pHCIDev;
config->pHCIProps = &pHcidevInfo->HCIProps; config->pHCIProps = &pHcidevInfo->HCIProps;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment