ath6kl: remove-typedef HTC_INIT_INFO
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Mon, 14 Mar 2011 17:58:56 +0000 (10:58 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Mar 2011 18:58:49 +0000 (11:58 -0700)
remove-typedef -s HTC_INIT_INFO \
"struct htc_init_info" 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>
drivers/staging/ath6kl/htc2/htc.c
drivers/staging/ath6kl/htc2/htc_internal.h
drivers/staging/ath6kl/include/htc_api.h
drivers/staging/ath6kl/os/linux/ar6000_drv.c

index 2a065b4c4c3f95f2b0669ac8fd5feb645bfcba90..810fe7b919e690bb34462ba64354bf634fb4180f 100644 (file)
@@ -90,7 +90,7 @@ static void HTCCleanup(HTC_TARGET *target)
 }
 
 /* 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;
     int                 status = 0;
@@ -130,7 +130,7 @@ HTC_HANDLE HTCCreate(void *hif_handle, HTC_INIT_INFO *pInfo)
         target->Device.MessagePendingCallback = HTCRecvMessagePendingHandler;
         target->EpWaitingForBuffers = ENDPOINT_MAX;
 
-        memcpy(&target->HTCInitInfo,pInfo,sizeof(HTC_INIT_INFO));
+        memcpy(&target->HTCInitInfo,pInfo,sizeof(struct htc_init_info));
         
         ResetEndpointStates(target);
           
index deff62a6cf119cdb6219852ebc7828a4f0872820..c5727ca609325228c1d28212fa7bea3e74dc6af0 100644 (file)
@@ -132,7 +132,7 @@ typedef struct _HTC_TARGET {
     u8 LastTrailer[256];
     u8 LastTrailerLength;
 #endif
-    HTC_INIT_INFO               HTCInitInfo;
+    struct htc_init_info               HTCInitInfo;
     u8 HTCTargetVersion;
     int                         MaxMsgPerBundle;       /* max messages per bundle for HTC */
     bool                      SendBundlingEnabled;   /* run time enable for send bundling (dynamic) */
index ad25d3ea40f8cc3c9945a81d1f0c878db47b2c1f..5878417c3443251555a58b9ae605d9d0cdf849fd 100644 (file)
@@ -43,10 +43,10 @@ typedef void *HTC_HANDLE;
 
 typedef u16 HTC_SERVICE_ID;
 
-typedef struct _HTC_INIT_INFO {
+struct htc_init_info {
     void   *pContext;           /* context for target failure notification */
     void   (*TargetFailure)(void *Instance, int Status);
-} HTC_INIT_INFO;
+};
 
 /* per service connection send completion */
 typedef void   (*HTC_EP_SEND_PKT_COMPLETE)(void *,HTC_PACKET *);
@@ -269,7 +269,7 @@ struct htc_endpoint_stats {
   @example:
   @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
   @function name: HTCGetHifDevice
index b739943d0ab8da7a44b9f82c63f8cc6980fdecbf..ebfe1e8b0f870d99a245e2e078ba5de6faaed9ad 100644 (file)
@@ -1599,7 +1599,7 @@ ar6000_avail_ev(void *context, void *hif_handle)
     void *ar_netif;
     AR_SOFTC_T *ar;
     int device_index = 0;
-    HTC_INIT_INFO  htcInfo;
+    struct htc_init_info  htcInfo;
 #ifdef ATH6K_CONFIG_CFG80211
     struct wireless_dev *wdev;
 #endif /* ATH6K_CONFIG_CFG80211 */