]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: save low latency causes in an enum
authorSara Sharon <sara.sharon@intel.com>
Wed, 27 Dec 2017 10:16:33 +0000 (12:16 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 28 Mar 2018 19:43:40 +0000 (22:43 +0300)
commit816dfc4c3664ed61abae604cc54483503b491d1b
tree235ad00028f48f18fc688a75d021d22457b5b23f
parent37a586eca020bb0e3d8ff6bc720b8f0886a8856c
iwlwifi: mvm: save low latency causes in an enum

Currently we have a boolean variable for each cause.

This costs space, and requires to check each separately
when determining low latency.

Since we have another cause incoming, convert it to an enum.

While at it, move the retrieval of the prev value and the
assignment of the new value to be inside iwl_mvm_update_low_latency
and save the need for each caller to do it separately.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/debugfs-vif.c
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/utils.c