aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-05-29 10:34:05 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-06-12 11:53:20 +0300
commit4e6d2739407aaf693cca2569eb58408228d2d3b0 (patch)
tree058beee3fdd132484cb2487f1fb40984a1cb6d8b /drivers/platform
parentPlatform: OLPC: Require CONFIG_POWER_SUPPLY for XO-1.75 EC (diff)
downloadlinux-dev-4e6d2739407aaf693cca2569eb58408228d2d3b0.tar.xz
linux-dev-4e6d2739407aaf693cca2569eb58408228d2d3b0.zip
Platform: OLPC: Add a config menu category for XO 1.75
Randy Dunlap says: drivers/platform/olpc/Kconfig needs to use "menuconfig" like all of the other Kconfig files in drivers/platform/ so that its menu is listed in the correct place in *config interfaces. Otherwise he's sad. Reported-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/olpc/Kconfig14
1 files changed, 13 insertions, 1 deletions
diff --git a/drivers/platform/olpc/Kconfig b/drivers/platform/olpc/Kconfig
index 6f35c01254e5..919b489e24e8 100644
--- a/drivers/platform/olpc/Kconfig
+++ b/drivers/platform/olpc/Kconfig
@@ -2,9 +2,19 @@ config OLPC_EC
select REGULATOR
bool
+menuconfig OLPC_XO175
+ bool "Platform support for OLPC XO 1.75 hardware"
+ depends on ARCH_MMP || COMPILE_TEST
+ help
+ Say Y here to get to see options for the ARM-based OLPC platform.
+ This option alone does not add any kernel code.
+
+ Unless you have an OLPC XO laptop, you will want to say N.
+
+if OLPC_XO175
+
config OLPC_XO175_EC
tristate "OLPC XO 1.75 Embedded Controller"
- depends on ARCH_MMP || COMPILE_TEST
depends on SPI_SLAVE
depends on INPUT
depends on POWER_SUPPLY
@@ -15,3 +25,5 @@ config OLPC_XO175_EC
button, restart, shutdown and battery charging status.
Unless you have an OLPC XO laptop, you will want to say N.
+
+endif # OLPC_XO175