]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit32a7e128799e348ba028b88ceadae414359b5696
treea240ace8b7b9b0078a9d8fbefde87ff8d9c69e28
parentf2504705618c7a257c0eeba9044fbbf51890be3b
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