summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-07-17 19:34:27 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-17 19:34:27 -0300
commit949dd30c130822c7252060fb62175436d7f45597 (patch)
tree3d5e39e564232b6229697e7ff77d8606cdd26e13
parent84bb00d8fbbe13b02a187aa2a3d05b084d576766 (diff)
downloadmediapointer-dvb-s2-949dd30c130822c7252060fb62175436d7f45597.tar.gz
mediapointer-dvb-s2-949dd30c130822c7252060fb62175436d7f45597.tar.bz2
video: Fix Kbuild dependency for VIDEO_IR_I2C
From: Mauro Carvalho Chehab <mchehab@infradead.org> Instead of letting VIDEO_IR_I2C to be selected by VIDEO_IR, if I2C, convert it into a symbol that depends on both VIDEO_IR and I2C. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--linux/drivers/media/video/Kconfig17
1 files changed, 13 insertions, 4 deletions
diff --git a/linux/drivers/media/video/Kconfig b/linux/drivers/media/video/Kconfig
index 1d9774664..f3a02dca6 100644
--- a/linux/drivers/media/video/Kconfig
+++ b/linux/drivers/media/video/Kconfig
@@ -36,13 +36,9 @@ config VIDEOBUF_DVB
config VIDEO_BTCX
tristate
-config VIDEO_IR_I2C
- tristate
-
config VIDEO_IR
tristate
depends on INPUT
- select VIDEO_IR_I2C if I2C
config VIDEO_TVEEPROM
tristate
@@ -88,6 +84,19 @@ config VIDEO_HELPER_CHIPS_AUTO
In doubt, say Y.
+config VIDEO_IR_I2C
+ tristate "I2C module for IR" if !VIDEO_HELPER_CHIPS_AUTO
+ depends on I2C && VIDEO_IR
+ default y
+ ---help---
+ Most boards have an IR chip directly connected via GPIO. However,
+ some video boards have the IR connected via I2C bus.
+
+ If your board doesn't have an I2C IR chip, you may disable this
+ option.
+
+ In doubt, say Y.
+
#
# Encoder / Decoder module configuration
#