]> git.hungrycats.org Git - linux/commit
iwlwifi: only show active power level via sysfs
authorReinette Chatre <reinette.chatre@intel.com>
Wed, 29 Jul 2009 03:35:50 +0000 (20:35 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 16 Aug 2009 21:18:07 +0000 (14:18 -0700)
commit786783ce30ef34eab18330fbdef36bf8712101de
tree861bd9f0ebb446f9b0b3ad949f2878609847b68e
parenta616b3e5a8c7a379f2fd4bc4e153868509fec94a
iwlwifi: only show active power level via sysfs

commit 872ed1902f511a8947021c562f5728a5bf0640b5 upstream.

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>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl3945-base.c