media: platform: delta: move config to its own file
authorMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 11 Mar 2022 12:29:17 +0000 (13:29 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 18 Mar 2022 04:56:31 +0000 (05:56 +0100)
In order to better organize the platform/Kconfig, place
delta-specific config stuff on a separate Kconfig file.

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/Kconfig
drivers/media/platform/sti/delta/Kconfig [new file with mode: 0644]

index 29afef26cbe42e29a69250b098213dd77419abaa..ba4c10896537ef423bf5dbf8f31d18c7883895a8 100644 (file)
@@ -132,41 +132,7 @@ config VIDEO_STI_BDISP
        help
          This v4l2 mem2mem driver is a 2D blitter for STMicroelectronics SoC.
 
-config VIDEO_STI_DELTA
-       tristate "STMicroelectronics DELTA multi-format video decoder V4L2 driver"
-       depends on V4L_MEM2MEM_DRIVERS
-       depends on VIDEO_DEV && VIDEO_V4L2
-       depends on ARCH_STI || COMPILE_TEST
-       help
-               This V4L2 driver enables DELTA multi-format video decoder
-               of STMicroelectronics STiH4xx SoC series allowing hardware
-               decoding of various compressed video bitstream format in
-               raw uncompressed format.
-
-               Use this option to see the decoders available for such
-               hardware.
-
-               Please notice that the driver will only be built if
-               at least one of the DELTA decoder below is selected.
-
-config VIDEO_STI_DELTA_MJPEG
-       bool "STMicroelectronics DELTA MJPEG support"
-       default y
-       depends on VIDEO_STI_DELTA
-       help
-               Enables DELTA MJPEG hardware support.
-
-               To compile this driver as a module, choose M here:
-               the module will be called st-delta.
-
-config VIDEO_STI_DELTA_DRIVER
-       tristate
-       depends on VIDEO_STI_DELTA
-       depends on VIDEO_STI_DELTA_MJPEG
-       default VIDEO_STI_DELTA_MJPEG
-       select VIDEOBUF2_DMA_CONTIG
-       select V4L2_MEM2MEM_DEV
-       select RPMSG
+source "drivers/media/platform/sti/delta/Kconfig"
 
 # DVB platform drivers
 source "drivers/media/platform/sti/c8sectpfe/Kconfig"
diff --git a/drivers/media/platform/sti/delta/Kconfig b/drivers/media/platform/sti/delta/Kconfig
new file mode 100644 (file)
index 0000000..0bbc7ed
--- /dev/null
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config VIDEO_STI_DELTA
+       tristate "STMicroelectronics DELTA multi-format video decoder V4L2 driver"
+       depends on V4L_MEM2MEM_DRIVERS
+       depends on VIDEO_DEV && VIDEO_V4L2
+       depends on ARCH_STI || COMPILE_TEST
+       help
+               This V4L2 driver enables DELTA multi-format video decoder
+               of STMicroelectronics STiH4xx SoC series allowing hardware
+               decoding of various compressed video bitstream format in
+               raw uncompressed format.
+
+               Use this option to see the decoders available for such
+               hardware.
+
+               Please notice that the driver will only be built if
+               at least one of the DELTA decoder below is selected.
+
+config VIDEO_STI_DELTA_MJPEG
+       bool "STMicroelectronics DELTA MJPEG support"
+       default y
+       depends on VIDEO_STI_DELTA
+       help
+               Enables DELTA MJPEG hardware support.
+
+               To compile this driver as a module, choose M here:
+               the module will be called st-delta.
+
+config VIDEO_STI_DELTA_DRIVER
+       tristate
+       depends on VIDEO_STI_DELTA
+       depends on VIDEO_STI_DELTA_MJPEG
+       default VIDEO_STI_DELTA_MJPEG
+       select VIDEOBUF2_DMA_CONTIG
+       select V4L2_MEM2MEM_DEV
+       select RPMSG