Ver código fonte

qcacld-3.0: Fix to resolve checkpatch errors

In current code base, some of files are not meeting linux coding
standard.

Fix them to satisfy coding standard.

Change-Id: Iedb1ec9ad7c75cb9f7ef97b19f14dca3b5eb9b6c
CRs-Fixed: 1051212
Krunal Soni 8 anos atrás
pai
commit
bf5840bd7d
3 arquivos alterados com 18 adições e 13 exclusões
  1. 1 1
      core/utils/fwlog/dbglog_host.c
  2. 1 1
      core/utils/fwlog/dbglog_host.h
  3. 16 11
      target/inc/dbglog.h

+ 1 - 1
core/utils/fwlog/dbglog_host.c

@@ -1300,7 +1300,7 @@ int dbglog_vap_log_enable(wmi_unified_t wmi_handle, A_UINT16 vap_id,
 	return 0;
 }
 
-int dbglog_set_log_lvl(wmi_unified_t wmi_handle, DBGLOG_LOG_LVL log_lvl)
+int dbglog_set_log_lvl(wmi_unified_t wmi_handle, enum DBGLOG_LOG_LVL log_lvl)
 {
 	A_UINT32 val = 0;
 

+ 1 - 1
core/utils/fwlog/dbglog_host.h

@@ -122,7 +122,7 @@ dbglog_report_enable(wmi_unified_t wmi_handle, A_BOOL isenable);
  * @brief DBGLOG_ERROR - default log level
  */
 int
-dbglog_set_log_lvl(wmi_unified_t wmi_handle, DBGLOG_LOG_LVL log_lvl);
+dbglog_set_log_lvl(wmi_unified_t wmi_handle, enum DBGLOG_LOG_LVL log_lvl);
 
 /*
  * set the debug log level for a given module

+ 16 - 11
target/inc/dbglog.h

@@ -38,22 +38,27 @@
 extern "C" {
 #endif
 #define DBGLOG_TIMESTAMP_OFFSET          0
-#define DBGLOG_TIMESTAMP_MASK            0xFFFFFFFF     /* Bit 0-15. Contains bit
-	                                                   8-23 of the LF0 timer */
+
+/* Bit 0-15. Contains bit 8-23 of the LF0 timer */
+#define DBGLOG_TIMESTAMP_MASK            0xFFFFFFFF
 #define DBGLOG_DBGID_OFFSET              0
+
 #define DBGLOG_DBGID_MASK                0x000003FF     /* Bit 0-9 */
-#define DBGLOG_DBGID_NUM_MAX             256    /* Upper limit is width of mask */
+/* Upper limit is width of mask */
+#define DBGLOG_DBGID_NUM_MAX             256
 
 #define DBGLOG_MODULEID_OFFSET           10
 #define DBGLOG_MODULEID_MASK             0x0003FC00     /* Bit 10-17 */
-#define DBGLOG_MODULEID_NUM_MAX          32     /* Upper limit is width of mask */
+/* Upper limit is width of mask */
+#define DBGLOG_MODULEID_NUM_MAX          32
+
+#define DBGLOG_VDEVID_OFFSET             18
+#define DBGLOG_VDEVID_MASK               0x03FC0000    /* Bit 20-25 */
+#define DBGLOG_VDEVID_NUM_MAX            16
 
-#define DBGLOG_VDEVID_OFFSET              18
-#define DBGLOG_VDEVID_MASK                0x03FC0000    /* Bit 20-25 */
-#define DBGLOG_VDEVID_NUM_MAX             16
+#define DBGLOG_NUM_ARGS_OFFSET           26
+#define DBGLOG_NUM_ARGS_MASK             0xFC000000    /* Bit 26-31 */
 
-#define DBGLOG_NUM_ARGS_OFFSET            26
-#define DBGLOG_NUM_ARGS_MASK              0xFC000000    /* Bit 26-31 */
 /* it is limited bcoz of limitations of corebsp MSG*() to accept max 9 arg */
 #define DBGLOG_NUM_ARGS_MAX               9
 
@@ -80,7 +85,7 @@ extern "C" {
 
 /* Debug Log levels*/
 
-typedef enum {
+enum DBGLOG_LOG_LVL {
 	DBGLOG_VERBOSE = 0,
 	DBGLOG_INFO,
 	DBGLOG_INFO_LVL_1,
@@ -88,7 +93,7 @@ typedef enum {
 	DBGLOG_WARN,
 	DBGLOG_ERR,
 	DBGLOG_LVL_MAX
-} DBGLOG_LOG_LVL;
+};
 
 PREPACK struct dbglog_buf_s {
 	struct dbglog_buf_s *next;