]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ACPI: use select POWER_SUPPLY for AC, BATTERY and SBS
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Mon, 29 Oct 2007 21:08:59 +0000 (17:08 -0400)
committerLen Brown <len.brown@intel.com>
Mon, 29 Oct 2007 21:08:59 +0000 (17:08 -0400)
POWER_SUPPLY is needed for AC, battery, and SBS sysfs support.  Use
'select' instead of 'depends on', as it is will not be selected by anything
else, leading to confusion.

Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Tested-by: Frans Pop <elendil@planet.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/Kconfig

index 5d0e26a5c34cd55455ee776891acac0e861b93f6..ecd87d7aa9f618e9132fc25cb0e9a217f16c6aab 100644 (file)
@@ -88,7 +88,8 @@ config ACPI_PROC_EVENT
 
 config ACPI_AC
        tristate "AC Adapter"
-       depends on X86 && POWER_SUPPLY
+       depends on X86
+       select POWER_SUPPLY
        default y
        help
          This driver adds support for the AC Adapter object, which indicates
@@ -97,7 +98,8 @@ config ACPI_AC
 
 config ACPI_BATTERY
        tristate "Battery"
-       depends on X86 && POWER_SUPPLY
+       depends on X86
+       select POWER_SUPPLY
        default y
        help
          This driver adds support for battery information through
@@ -352,7 +354,7 @@ config ACPI_HOTPLUG_MEMORY
 config ACPI_SBS
        tristate "Smart Battery System"
        depends on X86
-       depends on POWER_SUPPLY
+       select POWER_SUPPLY
        help
          This driver adds support for the Smart Battery System, another
          type of access to battery information, found on some laptops.