]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
ath10k: use crash_dump enum instead of magic numbers
authorBrian Norris <briannorris@chromium.org>
Mon, 11 Jun 2018 18:19:35 +0000 (11:19 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 14 Jun 2018 15:13:10 +0000 (18:13 +0300)
The comments are telling you what the enum could tell you instead.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/core.c

index 25ecf7402984bd871d58aea5183bbf7cd79d2d42..983eb6a1aa95def735a183f1ba295000f0a5cfbb 100644 (file)
@@ -41,10 +41,8 @@ static bool uart_print;
 static bool skip_otp;
 static bool rawmode;
 
-/* Enable ATH10K_FW_CRASH_DUMP_REGISTERS and ATH10K_FW_CRASH_DUMP_CE_DATA
- * by default.
- */
-unsigned long ath10k_coredump_mask = 0x3;
+unsigned long ath10k_coredump_mask = BIT(ATH10K_FW_CRASH_DUMP_REGISTERS) |
+                                    BIT(ATH10K_FW_CRASH_DUMP_CE_DATA);
 
 /* FIXME: most of these should be readonly */
 module_param_named(debug_mask, ath10k_debug_mask, uint, 0644);