Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: ath6kl: remove-typedef ATH_DEBUG_MASK_DESCRIPTION

remove-typedef -s ATH_DEBUG_MASK_DESCRIPTION \
"struct ath_debug_mask_description" drivers/staging/ath6kl/

Cc: Naveen Singh <naveen.singh@atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Luis R. Rodriguez and committed by
Greg Kroah-Hartman
090f807a 42837dc9

+12 -12
+1 -1
drivers/staging/ath6kl/bmi/src/bmi.c
··· 33 33 #include "bmi_internal.h" 34 34 35 35 #ifdef ATH_DEBUG_MODULE 36 - static ATH_DEBUG_MASK_DESCRIPTION bmi_debug_desc[] = { 36 + static struct ath_debug_mask_description bmi_debug_desc[] = { 37 37 { ATH_DEBUG_BMI , "BMI Tracing"}, 38 38 }; 39 39
+1 -1
drivers/staging/ath6kl/htc2/htc.c
··· 23 23 #include "htc_internal.h" 24 24 25 25 #ifdef ATH_DEBUG_MODULE 26 - static ATH_DEBUG_MASK_DESCRIPTION g_HTCDebugDescription[] = { 26 + static struct ath_debug_mask_description g_HTCDebugDescription[] = { 27 27 { ATH_DEBUG_SEND , "Send"}, 28 28 { ATH_DEBUG_RECV , "Recv"}, 29 29 { ATH_DEBUG_SYNC , "Sync"},
+5 -5
drivers/staging/ath6kl/include/a_debug.h
··· 95 95 * #define ATH_DEBUG_BMI ATH_DEBUG_MAKE_MODULE_MASK(0) 96 96 * 97 97 * #ifdef DEBUG 98 - * static ATH_DEBUG_MASK_DESCRIPTION bmi_debug_desc[] = { 98 + * static struct ath_debug_mask_description bmi_debug_desc[] = { 99 99 * { ATH_DEBUG_BMI , "BMI Tracing"}, <== description of the module specific mask 100 100 * }; 101 101 * ··· 118 118 #define ATH_DEBUG_MAX_MASK_DESC_LENGTH 32 119 119 #define ATH_DEBUG_MAX_MOD_DESC_LENGTH 64 120 120 121 - typedef struct { 121 + struct ath_debug_mask_description { 122 122 u32 Mask; 123 123 char Description[ATH_DEBUG_MAX_MASK_DESC_LENGTH]; 124 - } ATH_DEBUG_MASK_DESCRIPTION; 124 + }; 125 125 126 126 #define ATH_DEBUG_INFO_FLAGS_REGISTERED (1 << 0) 127 127 ··· 132 132 u32 Flags; 133 133 u32 CurrentMask; 134 134 int MaxDescriptions; 135 - ATH_DEBUG_MASK_DESCRIPTION *pMaskDescriptions; /* pointer to array of descriptions */ 135 + struct ath_debug_mask_description *pMaskDescriptions; /* pointer to array of descriptions */ 136 136 } ATH_DEBUG_MODULE_DBG_INFO; 137 137 138 - #define ATH_DEBUG_DESCRIPTION_COUNT(d) (int)((sizeof((d))) / (sizeof(ATH_DEBUG_MASK_DESCRIPTION))) 138 + #define ATH_DEBUG_DESCRIPTION_COUNT(d) (int)((sizeof((d))) / (sizeof(struct ath_debug_mask_description))) 139 139 140 140 #define GET_ATH_MODULE_DEBUG_VAR_NAME(s) _XGET_ATH_MODULE_NAME_DEBUG_(s) 141 141 #define GET_ATH_MODULE_DEBUG_VAR_MASK(s) _XGET_ATH_MODULE_NAME_DEBUG_(s).CurrentMask
+1 -1
drivers/staging/ath6kl/miscdrv/common_drv.c
··· 834 834 void a_dump_module_debug_info(ATH_DEBUG_MODULE_DBG_INFO *pInfo) 835 835 { 836 836 int i; 837 - ATH_DEBUG_MASK_DESCRIPTION *pDesc; 837 + struct ath_debug_mask_description *pDesc; 838 838 839 839 if (pInfo == NULL) { 840 840 return;
+1 -1
drivers/staging/ath6kl/os/linux/ar6000_drv.c
··· 60 60 #define ATH_DEBUG_HTC_RAW ATH_DEBUG_MAKE_MODULE_MASK(5) 61 61 #define ATH_DEBUG_HCI_BRIDGE ATH_DEBUG_MAKE_MODULE_MASK(6) 62 62 63 - static ATH_DEBUG_MASK_DESCRIPTION driver_debug_desc[] = { 63 + static struct ath_debug_mask_description driver_debug_desc[] = { 64 64 { ATH_DEBUG_DBG_LOG , "Target Debug Logs"}, 65 65 { ATH_DEBUG_WLAN_CONNECT , "WLAN connect"}, 66 66 { ATH_DEBUG_WLAN_SCAN , "WLAN scan"},
+1 -1
drivers/staging/ath6kl/os/linux/ar6000_pm.c
··· 44 44 #define ATH_DEBUG_PM ATH_DEBUG_MAKE_MODULE_MASK(0) 45 45 46 46 #ifdef DEBUG 47 - static ATH_DEBUG_MASK_DESCRIPTION pm_debug_desc[] = { 47 + static struct ath_debug_mask_description pm_debug_desc[] = { 48 48 { ATH_DEBUG_PM , "System power management"}, 49 49 }; 50 50
+1 -1
drivers/staging/ath6kl/wlan/src/wlan_node.c
··· 40 40 41 41 #ifdef ATH_DEBUG_MODULE 42 42 43 - static ATH_DEBUG_MASK_DESCRIPTION wlan_debug_desc[] = { 43 + static struct ath_debug_mask_description wlan_debug_desc[] = { 44 44 { ATH_DEBUG_WLAN , "General WLAN Node Tracing"}, 45 45 }; 46 46
+1 -1
drivers/staging/ath6kl/wmi/wmi.c
··· 48 48 49 49 #ifdef ATH_DEBUG_MODULE 50 50 51 - static ATH_DEBUG_MASK_DESCRIPTION wmi_debug_desc[] = { 51 + static struct ath_debug_mask_description wmi_debug_desc[] = { 52 52 { ATH_DEBUG_WMI , "General WMI Tracing"}, 53 53 }; 54 54