Skip to contentSkip to conversation

media: rc: gpio-ir-tx does not work without devicetree or gpiolib

PATCH New Sean Young 1 participant 3 messages Oct 5, 2017

Subsystems (2)
lore
Share & tools
lore

Sean Young

author maintainer
#0 lore raw

PATCH 1/3 media: rc: gpio-ir-tx does not work without devicetree or gpiolib

If the kernel is built without device tree, this driver cannot be used and without gpiolib it cannot control any gpio pin.

---
 drivers/media/rc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/media/rc/Kconfig +1 -0
index 451cba1fe9bf..946d2ec419db 100644
@@ -403,6 +403,7 @@ config IR_GPIO_TX
 	tristate "GPIO IR Bit Banging Transmitter"
 	depends on RC_CORE
 	depends on LIRC
+	depends on (OF && GPIOLIB) || COMPILE_TEST
 	---help---
 	   Say Y if you want to a GPIO based IR transmitter. This is a
 	   bit banging driver.
Signature · 1 line
2.13.6
author maintainer
#1 lore raw

PATCH 2/3 media: rc: pwm-ir-tx needs OF

Without device tree, there is no way to use this driver.

---
 drivers/media/rc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/media/rc/Kconfig +1 -0
index 946d2ec419db..88c8ecd13044 100644
@@ -416,6 +416,7 @@ config IR_PWM_TX
 	depends on RC_CORE
 	depends on LIRC
 	depends on PWM
+	depends on OF || COMPILE_TEST
 	---help---
 	   Say Y if you want to use a PWM based IR transmitter. This is
 	   more power efficient than the bit banging gpio driver.
Signature · 1 line
2.13.6
author maintainer
#2 lore raw

PATCH 3/3 media: rc: hix5hd2 drivers needs OF

In reply to Sean Young

Without device tree, there is no way to use this driver.

---
 drivers/media/rc/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/media/rc/Kconfig +1 -0
index 88c8ecd13044..94db0ed1df54 100644
@@ -178,6 +178,7 @@ config IR_ENE
 config IR_HIX5HD2
 	tristate "Hisilicon hix5hd2 IR remote control"
 	depends on RC_CORE
+	depends on OF || COMPILE_TEST
 	help
 	   Say Y here if you want to use hisilicon hix5hd2 remote control.
 	   To compile this driver as a module, choose M here: the module will be
Signature · 1 line
2.13.6