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)
commit9b137866f9a2699698cfffb0b7729331a419d617
tree235ad00028f48f18fc688a75d021d22457b5b23f
parent8f27036a0e380c6ede67a8d2a132327fcb760ace
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