summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/intel/iwlwifi/fw/api/coex.h
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2017-08-06 11:06:44 +0300
committerLuca Coelho <luciano.coelho@intel.com>2017-08-18 16:10:44 +0300
commitd91c3fd0ceba90ed66949fccc856b1e8119a9ccd (patch)
treebe2424f190894cb9533297896854e329598e44a5 /drivers/net/wireless/intel/iwlwifi/fw/api/coex.h
parent114db230d35442e6d3382adc8ac34c944b5cd0eb (diff)
downloadlinux-d91c3fd0ceba90ed66949fccc856b1e8119a9ccd.tar.xz
iwlwifi: move BT_MBOX_PRINT macro to common header
Move the BT_MBOX_PRINT() macro from mvm/debugfs.c to fw/api/coex.h so it can be reused and remove duplicate definition of BT_MBOX_MSG(), keeping only the one already in coex.h. Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/fw/api/coex.h')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/fw/api/coex.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/coex.h b/drivers/net/wireless/intel/iwlwifi/fw/api/coex.h
index d9a74db01f90..d09555afe2c5 100644
--- a/drivers/net/wireless/intel/iwlwifi/fw/api/coex.h
+++ b/drivers/net/wireless/intel/iwlwifi/fw/api/coex.h
@@ -197,6 +197,12 @@ enum iwl_bt_mxbox_dw4 {
((le32_to_cpu((_notif)->mbox_msg[(_num)]) & BT_MBOX##_num##_##_field)\
>> BT_MBOX##_num##_##_field##_POS)
+#define BT_MBOX_PRINT(_num, _field, _end) \
+ pos += scnprintf(buf + pos, bufsz - pos, \
+ "\t%s: %d%s", \
+ #_field, \
+ BT_MBOX_MSG(notif, _num, _field), \
+ true ? "\n" : ", ");
enum iwl_bt_activity_grading {
BT_OFF = 0,
BT_ON_NO_CONNECTION = 1,