[PATCH 03/36] Use menuconfig objects II - battery

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Change Kconfig objects from "menu, config" into "menuconfig" so
that the user can disable the whole feature without having to
enter the menu first.

Signed-off-by: Jan Engelhardt <[email protected]>

---
 drivers/battery/Kconfig |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/battery/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/battery/Kconfig
@@ -1,7 +1,5 @@
 
-menu "Battery devices"
-
-config BATTERY
+menuconfig BATTERY
 	tristate "Battery class support"
 	select EXTERNAL_POWER
 	help
@@ -9,16 +7,18 @@ config BATTERY
 	  monitoring by userspace via sysfs (if available) and/or APM
 	  kernel interface (if selected below).
 
+if BATTERY
+
 config APM_POWER
 	tristate "APM emulation for class batteries"
-	depends on BATTERY && APM_EMULATION
+	depends on APM_EMULATION
 	help
 	  Say Y here to enable support APM status emulation using
 	  battery class devices.
 
 config BATTERY_DS2760
 	tristate "DS2760 battery driver (HP iPAQ & others)"
-	depends on BATTERY && W1
+	depends on W1
 	select W1_SLAVE_DS2760
 	help
 	  Say Y here to enable support for batteries with ds2760 chip.
@@ -30,4 +30,4 @@ config BATTERY_PMU
 	  Say Y here to expose battery information on Apple machines
 	  through the generic battery class.
 
-endmenu
+endif # BATTERY
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux