From bf5840bd7da19c8d5d98202ca04974874355d09b Mon Sep 17 00:00:00 2001 From: Krunal Soni Date: Thu, 7 Jul 2016 16:12:07 -0700 Subject: 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 --- core/utils/fwlog/dbglog_host.c | 2 +- core/utils/fwlog/dbglog_host.h | 2 +- target/inc/dbglog.h | 27 ++++++++++++++++----------- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/core/utils/fwlog/dbglog_host.c b/core/utils/fwlog/dbglog_host.c index 430266df0885..33eb3d9f05e2 100644 --- a/core/utils/fwlog/dbglog_host.c +++ b/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; diff --git a/core/utils/fwlog/dbglog_host.h b/core/utils/fwlog/dbglog_host.h index cefeed6c656e..3d7fd2827a85 100644 --- a/core/utils/fwlog/dbglog_host.h +++ b/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 diff --git a/target/inc/dbglog.h b/target/inc/dbglog.h index 5514ca22f9cb..d3179a7ae92e 100644 --- a/target/inc/dbglog.h +++ b/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; -- cgit v1.2.3