media: Kconfig: not all V4L2 platform drivers are for camera
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 24 Mar 2020 09:03:16 +0000 (10:03 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 14 Apr 2020 08:29:04 +0000 (10:29 +0200)
When the platform drivers got added, they were all part of
complex camera support. This is not the case anymore, as we
now have codecs and other stuff there too.

So, fix the dependencies, in order to not require users to
manually select something that it doesn't make sense.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/Kconfig
drivers/media/platform/Kconfig

index 2b6ea8beb91995816a5d4e482c9de3c8c0066d9b..31fbdb2a8d41d39a6f80fe23f5b3adad889c18a0 100644 (file)
@@ -111,8 +111,7 @@ source "drivers/media/mc/Kconfig"
 config VIDEO_DEV
        tristate
        depends on MEDIA_SUPPORT
-       depends on MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT
-       default y
+       default MEDIA_CAMERA_SUPPORT || MEDIA_ANALOG_TV_SUPPORT || MEDIA_RADIO_SUPPORT || MEDIA_SDR_SUPPORT || MEDIA_PLATFORM_SUPPORT
 
 config VIDEO_V4L2_SUBDEV_API
        bool "V4L2 sub-device userspace API"
index e01bbb9dd1c159020fc366f71622cee0c9aa1d6d..c4178420d2c5a6825445f90475a5399e447a5ef0 100644 (file)
@@ -5,7 +5,6 @@
 
 menuconfig V4L_PLATFORM_DRIVERS
        bool "V4L platform devices"
-       depends on MEDIA_CAMERA_SUPPORT
        help
          Say Y here to enable support for platform-specific V4L drivers.
 
@@ -43,7 +42,6 @@ config VIDEO_ASPEED
 
 config VIDEO_SH_VOU
        tristate "SuperH VOU video output driver"
-       depends on MEDIA_CAMERA_SUPPORT
        depends on VIDEO_DEV && I2C
        depends on ARCH_SHMOBILE || COMPILE_TEST
        select VIDEOBUF2_DMA_CONTIG
@@ -165,7 +163,6 @@ endif # V4L_PLATFORM_DRIVERS
 menuconfig V4L_MEM2MEM_DRIVERS
        bool "Memory-to-memory multimedia devices"
        depends on VIDEO_V4L2
-       depends on MEDIA_CAMERA_SUPPORT
        help
          Say Y here to enable selecting drivers for V4L devices that
          use system memory for both source and destination buffers, as opposed