Procházet zdrojové kódy

qcacmn: Rename hif_vebose_debug_mask

In enum verbose_debug_module the enumerator hif_vebose_debug_mask has
a misspelling, so fix it. But introduce a macro to map the old name to
the new name to prevent build errors for existing users.

Change-Id: I03932bf11a546cecfa4df478f028bc56b6891148
CRs-Fixed: 3374268
Jeff Johnson před 2 roky
rodič
revize
9932e27f47
1 změnil soubory, kde provedl 6 přidání a 3 odebrání
  1. 6 3
      dp/inc/cdp_txrx_cmn.h

+ 6 - 3
dp/inc/cdp_txrx_cmn.h

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2011-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -59,7 +59,7 @@ extern bool is_dp_verbose_debug_enabled;
 
 #ifdef ENABLE_VERBOSE_DEBUG
 /**
- * @enum verbose_debug_module:
+ * enum verbose_debug_module -
  * if INI "enable_verbose_debug" has to set following bit positions to enable
  * respective module's excessive logging,
  *
@@ -68,11 +68,14 @@ extern bool is_dp_verbose_debug_enabled;
  * @dp_verbose_debug_mask:  3rd bit [2nd index] is for DP module
  */
 enum verbose_debug_module {
-	hif_vebose_debug_mask    = 1 << 0,
+	hif_verbose_debug_mask   = 1 << 0,
 	hal_verbose_debug_mask   = 1 << 1,
 	dp_verbose_debug_mask    = 1 << 2,
 };
 
+/* legacy misspelled enumerator */
+#define hif_vebose_debug_mask hif_verbose_debug_mask
+
 #define dp_verbose_debug(params...) \
 		if (unlikely(is_dp_verbose_debug_enabled)) \
 			do {\