OSDN Git Service

iwlwifi: mvm: refactor iwl_mvm_power_set_pm() to spin the ps part off
authorLuciano Coelho <luciano.coelho@intel.com>
Fri, 8 Aug 2014 15:36:22 +0000 (18:36 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 3 Sep 2014 19:48:57 +0000 (22:48 +0300)
commit128aa948d0606e537b743fb8e29ce09fc3473137
tree804b1c4ed8ffed66bc2db90c8f6f7df5fd39d2ab
parentb1873300e15aff44c01f7c9bc275c2c6e414f2fa
iwlwifi: mvm: refactor iwl_mvm_power_set_pm() to spin the ps part off

Separate the ps part of iwl_mvm_power_set_pm() into a new
iwl_mvm_power_set_ps() function.  This will enable us to update the ps
part independently from the rest, which is needed by CSA (at least).

This required a bit of refactoring and the creation of a new iterator
function.

Signed-off-by: Luciano Coelho <luciano.coelho@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/power.c