]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: return the cooling state index instead of the budget
authorChaya Rachel Ivgi <chaya.rachel.ivgi@intel.com>
Sun, 14 Feb 2016 12:03:10 +0000 (14:03 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 9 Mar 2016 19:05:13 +0000 (21:05 +0200)
commit9269b52601c6fae0cd8926cb7741e311fa09a09d
tree5c70d0ad409f7768327b9cc5b23f19d5299b0f8f
parent0ce5b4449012d6114aab7a0737ad756df9f70b4c
iwlwifi: mvm: return the cooling state index instead of the budget

iwl_mvm_tcool_get_cur_state is the function that returns the
cooling state index to the sysfs handler. This function returns
mvm->cooling_dev.cur_state but that variable was set to the
budget and not the cooling state index. Fix that.
Add a missing blank line while at it.

Signed-off-by: Chaya Rachel Ivgi <chaya.rachel.ivgi@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/mvm/tt.c