]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: only show active power level via sysfs
authorReinette Chatre <reinette.chatre@intel.com>
Thu, 9 Jul 2009 17:33:37 +0000 (10:33 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 21 Jul 2009 16:07:31 +0000 (12:07 -0400)
commit429cbe026532917ef87ee95c685c6629f6b611fe
tree1acc79a5c3340204be08d5483c04a698a3a335eb
parent008e628441bdf695e95a41b2330784788e71dc2e
iwlwifi: only show active power level via sysfs

This changes the power_level file to adhere to the "one value
per file" sysfs rule. The user will know which power level was
requested as it will be the number just written to this file. It
is thus not necessary to create a new sysfs file for this value.

In addition it fixes a problem where powertop's parsing expects
this value to be the first value in this file without any descriptions.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl3945-base.c