media: rc-core: do not depend on MEDIA_SUPPORT
authorSean Young <sean@mess.org>
Sun, 2 Jul 2017 19:37:58 +0000 (15:37 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 13:39:36 +0000 (09:39 -0400)
There is no dependency between the two, so remove the dependency in
Kconfig files.

Signed-off-by: Sean Young <sean@mess.org>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
arch/arm/configs/imx_v6_v7_defconfig
arch/arm/configs/omap2plus_defconfig
arch/arm/configs/sunxi_defconfig
arch/mips/configs/pistachio_defconfig
drivers/media/Kconfig
drivers/media/rc/Kconfig

index e74de69caeabb675908cb1672c8843cc939fd8d9..1736813bdea76aec36ac7701dc3458d1cba627d2 100644 (file)
@@ -226,7 +226,7 @@ CONFIG_REGULATOR_MC13892=y
 CONFIG_REGULATOR_PFUZE100=y
 CONFIG_MEDIA_SUPPORT=y
 CONFIG_MEDIA_CAMERA_SUPPORT=y
-CONFIG_MEDIA_RC_SUPPORT=y
+CONFIG_RC_CORE=y
 CONFIG_RC_DEVICES=y
 CONFIG_IR_GPIO_CIR=y
 CONFIG_MEDIA_USB_SUPPORT=y
index a120ae81626003378ebab8afabe4c8358c789d3b..0414acf731cea59d760079d16a47d8509ce8174b 100644 (file)
@@ -304,7 +304,7 @@ CONFIG_REGULATOR_TPS65910=y
 CONFIG_REGULATOR_TWL4030=y
 CONFIG_MEDIA_SUPPORT=m
 CONFIG_MEDIA_CAMERA_SUPPORT=y
-CONFIG_MEDIA_RC_SUPPORT=y
+CONFIG_RC_CORE=m
 CONFIG_MEDIA_CONTROLLER=y
 CONFIG_VIDEO_V4L2_SUBDEV_API=y
 CONFIG_LIRC=m
index 0ec1d1ec130fabcfbc106b3e0f2a8c32d4cea546..22cd559531a92402252c8c87da88603608489ba4 100644 (file)
@@ -95,7 +95,7 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_REGULATOR_AXP20X=y
 CONFIG_REGULATOR_GPIO=y
 CONFIG_MEDIA_SUPPORT=y
-CONFIG_MEDIA_RC_SUPPORT=y
+CONFIG_RC_CORE=y
 CONFIG_RC_DEVICES=y
 CONFIG_IR_SUNXI=y
 CONFIG_DRM=y
index 7d32fbbca96269dd37d22d672ee2a6a6783dfc32..3598d58aac3066a94955c545b7dc205507a625d3 100644 (file)
@@ -207,7 +207,7 @@ CONFIG_IMGPDC_WDT=y
 CONFIG_REGULATOR_FIXED_VOLTAGE=y
 CONFIG_REGULATOR_GPIO=y
 CONFIG_MEDIA_SUPPORT=y
-CONFIG_MEDIA_RC_SUPPORT=y
+CONFIG_RC_CORE=y
 # CONFIG_RC_DECODERS is not set
 CONFIG_RC_DEVICES=y
 CONFIG_IR_IMG=y
index 94d4e77591275dd2d3f9b7e8219dee7070baf5ab..edfe99b22d56593489e25683f7b95c54ba33418f 100644 (file)
@@ -11,6 +11,8 @@ config CEC_NOTIFIER
 config CEC_PIN
        bool
 
+source "drivers/media/rc/Kconfig"
+
 menuconfig MEDIA_SUPPORT
        tristate "Multimedia support"
        depends on HAS_IOMEM
@@ -75,20 +77,6 @@ config MEDIA_SDR_SUPPORT
 
          Say Y when you have a software defined radio device.
 
-config MEDIA_RC_SUPPORT
-       bool "Remote Controller support"
-       depends on INPUT
-       ---help---
-         Enable support for Remote Controllers on Linux. This is
-         needed in order to support several video capture adapters,
-         standalone IR receivers/transmitters, and RF receivers.
-
-         Enable this option if you have a video capture board even
-         if you don't need IR, as otherwise, you may not be able to
-         compile the driver for your adapter.
-
-         Say Y when you have a TV or an IR device.
-
 config MEDIA_CEC_SUPPORT
        bool "HDMI CEC support"
        ---help---
@@ -178,7 +166,6 @@ config TTPCI_EEPROM
 source "drivers/media/dvb-core/Kconfig"
 
 comment "Media drivers"
-source "drivers/media/rc/Kconfig"
 
 #
 # V4L platform/mem2mem drivers
index 5e83b76495f788505b1a671afdeffd7035ea2604..b6433c57a02468fdfe989afbd73430e85921c06e 100644 (file)
@@ -1,9 +1,20 @@
-config RC_CORE
-       tristate
-       depends on MEDIA_RC_SUPPORT
+
+menuconfig RC_CORE
+       tristate "Remote Controller support"
        depends on INPUT
        default y
+       ---help---
+         Enable support for Remote Controllers on Linux. This is
+         needed in order to support several video capture adapters,
+         standalone IR receivers/transmitters, and RF receivers.
+
+         Enable this option if you have a video capture board even
+         if you don't need IR, as otherwise, you may not be able to
+         compile the driver for your adapter.
 
+         Say Y when you have a TV or an IR device.
+
+if RC_CORE
 source "drivers/media/rc/keymaps/Kconfig"
 
 menuconfig RC_DECODERS
@@ -436,3 +447,5 @@ config IR_SIR
           be called sir-ir.
 
 endif #RC_DEVICES
+
+endif #RC_CORE