iwlwifi: mvm: use build-time assertion for fw trigger ID
authorJohannes Berg <johannes.berg@intel.com>
Tue, 22 Sep 2015 10:24:31 +0000 (12:24 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 26 Nov 2015 14:38:50 +0000 (16:38 +0200)
commit4707fde5cdefc73c408915af2579c4acaf49ade4
treea240ace8b7b9b0078a9d8fbefde87ff8d9c69e28
parent59fd4bf64591fbd02c6115d9282e2e7cffefa6e1
iwlwifi: mvm: use build-time assertion for fw trigger ID

The firmware debug trigger ID is always a compile-time constant,
so we can use a build-time assertion to validate that it is in
fact a valid constant.

To make that really guaranteed to work, convert this and the
inline function iwl_fw_dbg_trigger_simple_stop() to macros.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-fw.h
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h