aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/i2c/Kconfig
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2019-06-12 04:15:43 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-06-12 10:43:37 -0400
commit4419617e0d0cc6f6526439e16f3a880e7d292eaa (patch)
treefe0279826cb13ea561b1d800f0094f6cb8faf011 /drivers/media/i2c/Kconfig
parentmedia: MAINTAINERS: media: Add Tomasz Figa as a videobuf2 reviewer (diff)
downloadwireguard-linux-4419617e0d0cc6f6526439e16f3a880e7d292eaa.tar.xz
wireguard-linux-4419617e0d0cc6f6526439e16f3a880e7d292eaa.zip
media: drivers: media: i2c: don't enable if CONFIG_DRM_I2C_ADV7511=n
CONFIG_DRM_I2C_ADV7511 and CONFIG_VIDEO_ADV7511 bind to the same platform device, so whichever driver gets loaded first will be used on the device. So they shouldn't be enabled at the same time. Rework so that VIDEO_ADV7511 and VIDEO_COBALT depends on DRM_I2C_ADV7511=n or COMPILE_TEST. Suggested-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/Kconfig')
-rw-r--r--drivers/media/i2c/Kconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/i2c/Kconfig b/drivers/media/i2c/Kconfig
index 95d42730745c..79ce9ec6fc1b 100644
--- a/drivers/media/i2c/Kconfig
+++ b/drivers/media/i2c/Kconfig
@@ -511,6 +511,7 @@ config VIDEO_ADV7393
config VIDEO_ADV7511
tristate "Analog Devices ADV7511 encoder"
depends on VIDEO_V4L2 && I2C && VIDEO_V4L2_SUBDEV_API
+ depends on DRM_I2C_ADV7511=n || COMPILE_TEST
select HDMI
help
Support for the Analog Devices ADV7511 video encoder.