[PATCH 25/36] Use menuconfig objects II - (external_)power

[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/power/Kconfig |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

--- linux-2.6.21-mm_20070428.orig/drivers/power/Kconfig
+++ linux-2.6.21-mm_20070428/drivers/power/Kconfig
@@ -1,7 +1,5 @@
 
-menu "External power support"
-
-config EXTERNAL_POWER
+menuconfig EXTERNAL_POWER
 	tristate "External power kernel interface"
 	help
 	  Say Y here to enable kernel external power detection interface,
@@ -10,12 +8,13 @@ config EXTERNAL_POWER
 
 	  This interface is mandatory for battery class support.
 
+if EXTERNAL_POWER
+
 config PDA_POWER
 	tristate "Generic PDA/phone power driver"
-	depends on EXTERNAL_POWER
 	help
 	  Say Y here to enable generic power driver for PDAs and phones with
 	  one or two external power supplies (AC/USB) connected to main and
 	  backup batteries, and optional builtin charger.
 
-endmenu
+endif # EXTERNAL_POWER
-
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