Skip to content

Commit b9e1486

Browse files
seanyoungmchehab
authored andcommitted
media: rc-core: do not depend on MEDIA_SUPPORT
There is no dependency between the two, so remove the dependency in Kconfig files. Signed-off-by: Sean Young <[email protected]> Acked-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent f394ca2 commit b9e1486

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

arch/arm/configs/imx_v6_v7_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ CONFIG_REGULATOR_MC13892=y
226226
CONFIG_REGULATOR_PFUZE100=y
227227
CONFIG_MEDIA_SUPPORT=y
228228
CONFIG_MEDIA_CAMERA_SUPPORT=y
229-
CONFIG_MEDIA_RC_SUPPORT=y
229+
CONFIG_RC_CORE=y
230230
CONFIG_RC_DEVICES=y
231231
CONFIG_IR_GPIO_CIR=y
232232
CONFIG_MEDIA_USB_SUPPORT=y

arch/arm/configs/omap2plus_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ CONFIG_REGULATOR_TPS65910=y
304304
CONFIG_REGULATOR_TWL4030=y
305305
CONFIG_MEDIA_SUPPORT=m
306306
CONFIG_MEDIA_CAMERA_SUPPORT=y
307-
CONFIG_MEDIA_RC_SUPPORT=y
307+
CONFIG_RC_CORE=m
308308
CONFIG_MEDIA_CONTROLLER=y
309309
CONFIG_VIDEO_V4L2_SUBDEV_API=y
310310
CONFIG_LIRC=m

arch/arm/configs/sunxi_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y
9595
CONFIG_REGULATOR_AXP20X=y
9696
CONFIG_REGULATOR_GPIO=y
9797
CONFIG_MEDIA_SUPPORT=y
98-
CONFIG_MEDIA_RC_SUPPORT=y
98+
CONFIG_RC_CORE=y
9999
CONFIG_RC_DEVICES=y
100100
CONFIG_IR_SUNXI=y
101101
CONFIG_DRM=y

arch/mips/configs/pistachio_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ CONFIG_IMGPDC_WDT=y
207207
CONFIG_REGULATOR_FIXED_VOLTAGE=y
208208
CONFIG_REGULATOR_GPIO=y
209209
CONFIG_MEDIA_SUPPORT=y
210-
CONFIG_MEDIA_RC_SUPPORT=y
210+
CONFIG_RC_CORE=y
211211
# CONFIG_RC_DECODERS is not set
212212
CONFIG_RC_DEVICES=y
213213
CONFIG_IR_IMG=y

drivers/media/Kconfig

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ config CEC_NOTIFIER
1111
config CEC_PIN
1212
bool
1313

14+
source "drivers/media/rc/Kconfig"
15+
1416
menuconfig MEDIA_SUPPORT
1517
tristate "Multimedia support"
1618
depends on HAS_IOMEM
@@ -75,20 +77,6 @@ config MEDIA_SDR_SUPPORT
7577

7678
Say Y when you have a software defined radio device.
7779

78-
config MEDIA_RC_SUPPORT
79-
bool "Remote Controller support"
80-
depends on INPUT
81-
---help---
82-
Enable support for Remote Controllers on Linux. This is
83-
needed in order to support several video capture adapters,
84-
standalone IR receivers/transmitters, and RF receivers.
85-
86-
Enable this option if you have a video capture board even
87-
if you don't need IR, as otherwise, you may not be able to
88-
compile the driver for your adapter.
89-
90-
Say Y when you have a TV or an IR device.
91-
9280
config MEDIA_CEC_SUPPORT
9381
bool "HDMI CEC support"
9482
---help---
@@ -178,7 +166,6 @@ config TTPCI_EEPROM
178166
source "drivers/media/dvb-core/Kconfig"
179167

180168
comment "Media drivers"
181-
source "drivers/media/rc/Kconfig"
182169

183170
#
184171
# V4L platform/mem2mem drivers

drivers/media/rc/Kconfig

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
1-
config RC_CORE
2-
tristate
3-
depends on MEDIA_RC_SUPPORT
1+
2+
menuconfig RC_CORE
3+
tristate "Remote Controller support"
44
depends on INPUT
55
default y
6+
---help---
7+
Enable support for Remote Controllers on Linux. This is
8+
needed in order to support several video capture adapters,
9+
standalone IR receivers/transmitters, and RF receivers.
10+
11+
Enable this option if you have a video capture board even
12+
if you don't need IR, as otherwise, you may not be able to
13+
compile the driver for your adapter.
614

15+
Say Y when you have a TV or an IR device.
16+
17+
if RC_CORE
718
source "drivers/media/rc/keymaps/Kconfig"
819

920
menuconfig RC_DECODERS
@@ -436,3 +447,5 @@ config IR_SIR
436447
be called sir-ir.
437448

438449
endif #RC_DEVICES
450+
451+
endif #RC_CORE

0 commit comments

Comments
 (0)