Commit 4f0cce96 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Greg Kroah-Hartman

ath6kl: remove-typedef HTC_INIT_INFO

remove-typedef -s HTC_INIT_INFO \
	"struct htc_init_info" drivers/staging/ath6kl/
Tested-by: default avatarNaveen Singh <nsingh@atheros.com>
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent af26f25c
...@@ -90,7 +90,7 @@ static void HTCCleanup(HTC_TARGET *target) ...@@ -90,7 +90,7 @@ static void HTCCleanup(HTC_TARGET *target)
} }
/* registered target arrival callback from the HIF layer */ /* registered target arrival callback from the HIF layer */
HTC_HANDLE HTCCreate(void *hif_handle, HTC_INIT_INFO *pInfo) HTC_HANDLE HTCCreate(void *hif_handle, struct htc_init_info *pInfo)
{ {
HTC_TARGET *target = NULL; HTC_TARGET *target = NULL;
int status = 0; int status = 0;
...@@ -130,7 +130,7 @@ HTC_HANDLE HTCCreate(void *hif_handle, HTC_INIT_INFO *pInfo) ...@@ -130,7 +130,7 @@ HTC_HANDLE HTCCreate(void *hif_handle, HTC_INIT_INFO *pInfo)
target->Device.MessagePendingCallback = HTCRecvMessagePendingHandler; target->Device.MessagePendingCallback = HTCRecvMessagePendingHandler;
target->EpWaitingForBuffers = ENDPOINT_MAX; target->EpWaitingForBuffers = ENDPOINT_MAX;
memcpy(&target->HTCInitInfo,pInfo,sizeof(HTC_INIT_INFO)); memcpy(&target->HTCInitInfo,pInfo,sizeof(struct htc_init_info));
ResetEndpointStates(target); ResetEndpointStates(target);
......
...@@ -132,7 +132,7 @@ typedef struct _HTC_TARGET { ...@@ -132,7 +132,7 @@ typedef struct _HTC_TARGET {
u8 LastTrailer[256]; u8 LastTrailer[256];
u8 LastTrailerLength; u8 LastTrailerLength;
#endif #endif
HTC_INIT_INFO HTCInitInfo; struct htc_init_info HTCInitInfo;
u8 HTCTargetVersion; u8 HTCTargetVersion;
int MaxMsgPerBundle; /* max messages per bundle for HTC */ int MaxMsgPerBundle; /* max messages per bundle for HTC */
bool SendBundlingEnabled; /* run time enable for send bundling (dynamic) */ bool SendBundlingEnabled; /* run time enable for send bundling (dynamic) */
......
...@@ -43,10 +43,10 @@ typedef void *HTC_HANDLE; ...@@ -43,10 +43,10 @@ typedef void *HTC_HANDLE;
typedef u16 HTC_SERVICE_ID; typedef u16 HTC_SERVICE_ID;
typedef struct _HTC_INIT_INFO { struct htc_init_info {
void *pContext; /* context for target failure notification */ void *pContext; /* context for target failure notification */
void (*TargetFailure)(void *Instance, int Status); void (*TargetFailure)(void *Instance, int Status);
} HTC_INIT_INFO; };
/* per service connection send completion */ /* per service connection send completion */
typedef void (*HTC_EP_SEND_PKT_COMPLETE)(void *,HTC_PACKET *); typedef void (*HTC_EP_SEND_PKT_COMPLETE)(void *,HTC_PACKET *);
...@@ -269,7 +269,7 @@ struct htc_endpoint_stats { ...@@ -269,7 +269,7 @@ struct htc_endpoint_stats {
@example: @example:
@see also: HTCDestroy @see also: HTCDestroy
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
HTC_HANDLE HTCCreate(void *HifDevice, HTC_INIT_INFO *pInfo); HTC_HANDLE HTCCreate(void *HifDevice, struct htc_init_info *pInfo);
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@desc: Get the underlying HIF device handle @desc: Get the underlying HIF device handle
@function name: HTCGetHifDevice @function name: HTCGetHifDevice
......
...@@ -1599,7 +1599,7 @@ ar6000_avail_ev(void *context, void *hif_handle) ...@@ -1599,7 +1599,7 @@ ar6000_avail_ev(void *context, void *hif_handle)
void *ar_netif; void *ar_netif;
AR_SOFTC_T *ar; AR_SOFTC_T *ar;
int device_index = 0; int device_index = 0;
HTC_INIT_INFO htcInfo; struct htc_init_info htcInfo;
#ifdef ATH6K_CONFIG_CFG80211 #ifdef ATH6K_CONFIG_CFG80211
struct wireless_dev *wdev; struct wireless_dev *wdev;
#endif /* ATH6K_CONFIG_CFG80211 */ #endif /* ATH6K_CONFIG_CFG80211 */
......
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