瀏覽代碼

qcacld-3.0: Replace typedef fw_log_info

The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The fw_log_info typedef does not
meet any of those criteria, so replace it with a struct.

Change-Id: I4ec73e046f2439c094cb6d05a99d883241c7fe20
CRs-Fixed: 2119521
Jeff Johnson 7 年之前
父節點
當前提交
dadef1a675
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      core/hdd/inc/wlan_hdd_main.h

+ 3 - 3
core/hdd/inc/wlan_hdd_main.h

@@ -1375,7 +1375,7 @@ struct hdd_priv_data {
 };
 };
 
 
 #define  MAX_MOD_LOGLEVEL 10
 #define  MAX_MOD_LOGLEVEL 10
-typedef struct {
+struct fw_log_info {
 	uint8_t enable;
 	uint8_t enable;
 	uint8_t dl_type;
 	uint8_t dl_type;
 	uint8_t dl_report;
 	uint8_t dl_report;
@@ -1383,7 +1383,7 @@ typedef struct {
 	uint8_t index;
 	uint8_t index;
 	uint32_t dl_mod_loglevel[MAX_MOD_LOGLEVEL];
 	uint32_t dl_mod_loglevel[MAX_MOD_LOGLEVEL];
 
 
-} fw_log_info;
+};
 
 
 /**
 /**
  * enum antenna_mode - number of TX/RX chains
  * enum antenna_mode - number of TX/RX chains
@@ -1692,7 +1692,7 @@ struct hdd_context {
 #ifdef FEATURE_GREEN_AP
 #ifdef FEATURE_GREEN_AP
 	struct hdd_green_ap_ctx *green_ap_ctx;
 	struct hdd_green_ap_ctx *green_ap_ctx;
 #endif
 #endif
-	fw_log_info fw_log_settings;
+	struct fw_log_info fw_log_settings;
 #ifdef FEATURE_WLAN_AP_AP_ACS_OPTIMIZE
 #ifdef FEATURE_WLAN_AP_AP_ACS_OPTIMIZE
 	qdf_mc_timer_t skip_acs_scan_timer;
 	qdf_mc_timer_t skip_acs_scan_timer;
 	uint8_t skip_acs_scan_status;
 	uint8_t skip_acs_scan_status;