media: platform: s3c-camif: move config to its own file
authorMauro Carvalho Chehab <mchehab@kernel.org>
Fri, 11 Mar 2022 11:36:46 +0000 (12:36 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 15 Mar 2022 05:45:40 +0000 (06:45 +0100)
In order to better organize the platform/Kconfig, place
s3c-camif-specific config stuff on a separate Kconfig file.

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

index 314e25d..9fe01af 100644 (file)
@@ -59,6 +59,7 @@ source "drivers/media/platform/qcom/venus/Kconfig"
 
 source "drivers/media/platform/aspeed/Kconfig"
 source "drivers/media/platform/rockchip/rga/Kconfig"
+source "drivers/media/platform/s3c-camif/Kconfig"
 
 config VIDEO_MUX
        tristate "Video Multiplexer"
@@ -74,21 +75,6 @@ config VIDEO_MUX
 
 source "drivers/media/platform/intel/Kconfig"
 
-config VIDEO_S3C_CAMIF
-       tristate "Samsung S3C24XX/S3C64XX SoC Camera Interface driver"
-       depends on V4L_PLATFORM_DRIVERS
-       depends on VIDEO_V4L2 && I2C && PM
-       depends on ARCH_S3C64XX || PLAT_S3C24XX || COMPILE_TEST
-       select MEDIA_CONTROLLER
-       select VIDEO_V4L2_SUBDEV_API
-       select VIDEOBUF2_DMA_CONTIG
-       help
-         This is a v4l2 driver for s3c24xx and s3c64xx SoC series camera
-         host interface (CAMIF).
-
-         To compile this driver as a module, choose M here: the module
-         will be called s3c-camif.
-
 config VIDEO_STM32_DCMI
        tristate "STM32 Digital Camera Memory Interface (DCMI) support"
        depends on V4L_PLATFORM_DRIVERS
diff --git a/drivers/media/platform/s3c-camif/Kconfig b/drivers/media/platform/s3c-camif/Kconfig
new file mode 100644 (file)
index 0000000..e8ef9e0
--- /dev/null
@@ -0,0 +1,15 @@
+# SPDX-License-Identifier: GPL-2.0-only
+config VIDEO_S3C_CAMIF
+       tristate "Samsung S3C24XX/S3C64XX SoC Camera Interface driver"
+       depends on V4L_PLATFORM_DRIVERS
+       depends on VIDEO_V4L2 && I2C && PM
+       depends on ARCH_S3C64XX || PLAT_S3C24XX || COMPILE_TEST
+       select MEDIA_CONTROLLER
+       select VIDEO_V4L2_SUBDEV_API
+       select VIDEOBUF2_DMA_CONTIG
+       help
+         This is a v4l2 driver for s3c24xx and s3c64xx SoC series camera
+         host interface (CAMIF).
+
+         To compile this driver as a module, choose M here: the module
+         will be called s3c-camif.