Skip to contentSkip to conversation

Input: fix dependencies of OLPC AP-SP driver

PATCH In review Jean Delvare 2 participants 3 messages Mar 11, 2014 – Mar 12, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: fix dependencies of OLPC AP-SP driver

I don't think the OLPC AP-SP driver is generally useful without OLPC support. So make it depend on OLPC, unless build testing is enabled.

Cc Dmitry Torokhov <[email protected]>
---
 drivers/input/serio/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/serio/Kconfig +1 -1
@@ -263,7 +263,7 @@ config SERIO_APBPS2
 
 config SERIO_OLPC_APSP
 	tristate "OLPC AP-SP input support"
-	depends on OF
+	depends on OLPC || (OF && COMPILE_TEST)
 	help
 	  Say Y here if you want support for the keyboard and touchpad included
 	  in the OLPC XO-1.75 and XO-4 laptops.
Signature · 2 lines
Jean Delvare
SUSE L3 Support
maintainer
#1 lore raw

Hi Jean,

Quoted 12 lines · Jean Delvare

I don't think the OLPC AP-SP driver is generally useful without OLPC support. So make it depend on OLPC, unless build testing is enabled.

Cc Dmitry Torokhov <[email protected]>
---
 drivers/input/serio/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

drivers/input/serio/Kconfig config SERIO_APBPS2 · line 266

Quoted 5 lines
drivers/input/serio/Kconfig +1 -1
@@ -263,7 +263,7 @@ config SERIO_APBPS2
 
 config SERIO_OLPC_APSP
 	tristate "OLPC AP-SP input support"
-	depends on OF
+	depends on OLPC || (OF && COMPILE_TEST)

Actually for compile coverage we do not actually need OF, I'll make it

	depends on OLPC || COMPILE_TEST

instead.

drivers/input/serio/Kconfig config SERIO_APBPS2 · line 269

Quoted 5 lines
drivers/input/serio/Kconfig +0 -0
 	help
 	  Say Y here if you want support for the keyboard and touchpad included
 	  in the OLPC XO-1.75 and XO-4 laptops.

Thanks.

Signature · 1 line
Dmitry
#2 lore raw

Hi Dmitry,

Quoted 21 lines · Dmitry Torokhov
Quoted 12 lines · Jean Delvare

I don't think the OLPC AP-SP driver is generally useful without OLPC support. So make it depend on OLPC, unless build testing is enabled.

Cc Dmitry Torokhov <[email protected]>
---
 drivers/input/serio/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

drivers/input/serio/Kconfig config SERIO_APBPS2 · line 266

Quoted 5 lines
drivers/input/serio/Kconfig +1 -1
@@ -263,7 +263,7 @@ config SERIO_APBPS2
 
 config SERIO_OLPC_APSP
 	tristate "OLPC AP-SP input support"
-	depends on OF
+	depends on OLPC || (OF && COMPILE_TEST)

Actually for compile coverage we do not actually need OF, I'll make it

Quoted 3 lines
	depends on OLPC || COMPILE_TEST

instead.

Ah, you're right. Thanks for spotting it, your solution is easier and cleaner :)

Signature · 2 lines
Jean Delvare
SUSE L3 Support