Commit 817819b2 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Mauro Carvalho Chehab

media: Replace dependency on VIDEO_V4L2_SUBDEV_API with select

The VIDEO_V4L2_SUBDEV_API Kconfig symbol is mostly selected
automatically, with a a handful of drivers still using it as a
dependency. Fix them to use selection, and drop the symbol title text to
not expose it for manual selection.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: default avatarEzequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 7a9795b3
...@@ -88,8 +88,10 @@ config VIDEO_HI847 ...@@ -88,8 +88,10 @@ config VIDEO_HI847
config VIDEO_IMX208 config VIDEO_IMX208
tristate "Sony IMX208 sensor support" tristate "Sony IMX208 sensor support"
depends on I2C && VIDEO_DEV && VIDEO_V4L2_SUBDEV_API depends on I2C && VIDEO_DEV
depends on MEDIA_CAMERA_SUPPORT depends on MEDIA_CAMERA_SUPPORT
select MEDIA_CONTROLLER
select VIDEO_V4L2_SUBDEV_API
help help
This is a Video4Linux2 sensor driver for the Sony This is a Video4Linux2 sensor driver for the Sony
IMX208 camera. IMX208 camera.
......
...@@ -20,12 +20,14 @@ config VIDEO_ATMEL_ISC ...@@ -20,12 +20,14 @@ config VIDEO_ATMEL_ISC
config VIDEO_ATMEL_XISC config VIDEO_ATMEL_XISC
tristate "ATMEL eXtended Image Sensor Controller (XISC) support" tristate "ATMEL eXtended Image Sensor Controller (XISC) support"
depends on V4L_PLATFORM_DRIVERS depends on V4L_PLATFORM_DRIVERS
depends on VIDEO_DEV && COMMON_CLK && VIDEO_V4L2_SUBDEV_API depends on VIDEO_DEV && COMMON_CLK
depends on ARCH_AT91 || COMPILE_TEST depends on ARCH_AT91 || COMPILE_TEST
select VIDEOBUF2_DMA_CONTIG select VIDEOBUF2_DMA_CONTIG
select REGMAP_MMIO select REGMAP_MMIO
select V4L2_FWNODE select V4L2_FWNODE
select VIDEO_ATMEL_ISC_BASE select VIDEO_ATMEL_ISC_BASE
select MEDIA_CONTROLLER
select VIDEO_V4L2_SUBDEV_API
help help
This module makes the ATMEL eXtended Image Sensor Controller This module makes the ATMEL eXtended Image Sensor Controller
available as a v4l2 device. available as a v4l2 device.
......
...@@ -9,7 +9,7 @@ config VIDEO_V4L2_I2C ...@@ -9,7 +9,7 @@ config VIDEO_V4L2_I2C
default y default y
config VIDEO_V4L2_SUBDEV_API config VIDEO_V4L2_SUBDEV_API
bool "V4L2 sub-device userspace API" bool
depends on VIDEO_DEV && MEDIA_CONTROLLER depends on VIDEO_DEV && MEDIA_CONTROLLER
help help
Enables the V4L2 sub-device pad-level userspace API used to configure Enables the V4L2 sub-device pad-level userspace API used to configure
...@@ -56,9 +56,11 @@ config V4L2_MEM2MEM_DEV ...@@ -56,9 +56,11 @@ config V4L2_MEM2MEM_DEV
# Used by LED subsystem flash drivers # Used by LED subsystem flash drivers
config V4L2_FLASH_LED_CLASS config V4L2_FLASH_LED_CLASS
tristate "V4L2 flash API for LED flash class devices" tristate "V4L2 flash API for LED flash class devices"
depends on VIDEO_DEV && VIDEO_V4L2_SUBDEV_API depends on VIDEO_DEV
depends on LEDS_CLASS_FLASH depends on LEDS_CLASS_FLASH
select MEDIA_CONTROLLER
select V4L2_ASYNC select V4L2_ASYNC
select VIDEO_V4L2_SUBDEV_API
help help
Say Y here to enable V4L2 flash API support for LED flash Say Y here to enable V4L2 flash API support for LED flash
class drivers. class drivers.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment