diff mbox series

[02/75] media: imx: Move dependency on VIDEO_DEV to common Kconfig symbol

Message ID 20210105152852.5733-3-laurent.pinchart@ideasonboard.com
State Accepted
Commit 8ab63c4cc3bd380c09b0cbe2eb18903ff65563eb
Headers show
Series [01/75] media: imx: Drop dependency on I2C | expand

Commit Message

Laurent Pinchart Jan. 5, 2021, 3:27 p.m. UTC
All the i.MX staging media drivers depend on VIDEO_DEV. Move the
dependency to the common VIDEO_IMX_MEDIA symbol to avoid repeating it.

While at it, sort the dependencies and selections alphabetically.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 drivers/staging/media/imx/Kconfig | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

Comments

Philipp Zabel Jan. 6, 2021, 2:21 p.m. UTC | #1
On Tue, 2021-01-05 at 17:27 +0200, Laurent Pinchart wrote:
> All the i.MX staging media drivers depend on VIDEO_DEV. Move the

> dependency to the common VIDEO_IMX_MEDIA symbol to avoid repeating it.

> 

> While at it, sort the dependencies and selections alphabetically.

> 

> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---

>  drivers/staging/media/imx/Kconfig | 11 ++++++-----

>  1 file changed, 6 insertions(+), 5 deletions(-)

> 

> diff --git a/drivers/staging/media/imx/Kconfig b/drivers/staging/media/imx/Kconfig

> index 4782f7cfb709..76a9111c189c 100644

> --- a/drivers/staging/media/imx/Kconfig

> +++ b/drivers/staging/media/imx/Kconfig

> @@ -2,13 +2,14 @@

>  config VIDEO_IMX_MEDIA

>  	tristate "i.MX5/6 V4L2 media core driver"

>  	depends on ARCH_MXC || COMPILE_TEST

> +	depends on HAS_DMA

> +	depends on VIDEO_DEV

>  	depends on VIDEO_V4L2 && IMX_IPUV3_CORE

>  	select MEDIA_CONTROLLER

> -	select VIDEO_V4L2_SUBDEV_API

> -	depends on HAS_DMA

> -	select VIDEOBUF2_DMA_CONTIG

>  	select V4L2_FWNODE

>  	select V4L2_MEM2MEM_DEV

> +	select VIDEOBUF2_DMA_CONTIG

> +	select VIDEO_V4L2_SUBDEV_API

>  	help

>  	  Say yes here to enable support for video4linux media controller

>  	  driver for the i.MX5/6 SOC.

> @@ -18,14 +19,14 @@ menu "i.MX5/6/7 Media Sub devices"

>  

>  config VIDEO_IMX_CSI

>  	tristate "i.MX5/6 Camera Sensor Interface driver"

> -	depends on VIDEO_IMX_MEDIA && VIDEO_DEV

> +	depends on VIDEO_IMX_MEDIA

>  	default y

>  	help

>  	  A video4linux camera sensor interface driver for i.MX5/6.

>  

>  config VIDEO_IMX7_CSI

>  	tristate "i.MX6UL/L / i.MX7 Camera Sensor Interface driver"

> -	depends on VIDEO_IMX_MEDIA && VIDEO_DEV

> +	depends on VIDEO_IMX_MEDIA

>  	default y

>  	help

>  	  Enable support for video4linux camera sensor interface driver for


Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>


regards
Philipp
diff mbox series

Patch

diff --git a/drivers/staging/media/imx/Kconfig b/drivers/staging/media/imx/Kconfig
index 4782f7cfb709..76a9111c189c 100644
--- a/drivers/staging/media/imx/Kconfig
+++ b/drivers/staging/media/imx/Kconfig
@@ -2,13 +2,14 @@ 
 config VIDEO_IMX_MEDIA
 	tristate "i.MX5/6 V4L2 media core driver"
 	depends on ARCH_MXC || COMPILE_TEST
+	depends on HAS_DMA
+	depends on VIDEO_DEV
 	depends on VIDEO_V4L2 && IMX_IPUV3_CORE
 	select MEDIA_CONTROLLER
-	select VIDEO_V4L2_SUBDEV_API
-	depends on HAS_DMA
-	select VIDEOBUF2_DMA_CONTIG
 	select V4L2_FWNODE
 	select V4L2_MEM2MEM_DEV
+	select VIDEOBUF2_DMA_CONTIG
+	select VIDEO_V4L2_SUBDEV_API
 	help
 	  Say yes here to enable support for video4linux media controller
 	  driver for the i.MX5/6 SOC.
@@ -18,14 +19,14 @@  menu "i.MX5/6/7 Media Sub devices"
 
 config VIDEO_IMX_CSI
 	tristate "i.MX5/6 Camera Sensor Interface driver"
-	depends on VIDEO_IMX_MEDIA && VIDEO_DEV
+	depends on VIDEO_IMX_MEDIA
 	default y
 	help
 	  A video4linux camera sensor interface driver for i.MX5/6.
 
 config VIDEO_IMX7_CSI
 	tristate "i.MX6UL/L / i.MX7 Camera Sensor Interface driver"
-	depends on VIDEO_IMX_MEDIA && VIDEO_DEV
+	depends on VIDEO_IMX_MEDIA
 	default y
 	help
 	  Enable support for video4linux camera sensor interface driver for