summaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/Kconfig
diff options
context:
space:
mode:
authorJacek Anaszewski <j.anaszewski@samsung.com>2015-06-19 09:31:47 +0200
committerBryan Wu <cooloney@gmail.com>2015-06-22 22:53:16 +0200
commit42bd6f59ae90244484746696aabcafc0003f59c7 (patch)
tree732281bf5b3544fbef93f39eb4f8d083cc264b66 /drivers/media/v4l2-core/Kconfig
parentv4l: async: Add a pointer to of_node to struct v4l2_subdev, match it (diff)
downloadlinux-42bd6f59ae90244484746696aabcafc0003f59c7.tar.xz
linux-42bd6f59ae90244484746696aabcafc0003f59c7.zip
media: Add registration helpers for V4L2 flash sub-devices
This patch adds helper functions for registering/unregistering LED Flash class devices as V4L2 sub-devices. The functions should be called from the LED subsystem device driver. In case the support for V4L2 Flash sub-devices is disabled in the kernel config the functions' empty versions will be used. Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: Sakari Ailus <sakari.ailus@iki.fi> Cc: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/media/v4l2-core/Kconfig')
-rw-r--r--drivers/media/v4l2-core/Kconfig11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/media/v4l2-core/Kconfig b/drivers/media/v4l2-core/Kconfig
index ba7e21a73023..c505dc33e4db 100644
--- a/drivers/media/v4l2-core/Kconfig
+++ b/drivers/media/v4l2-core/Kconfig
@@ -44,6 +44,17 @@ config V4L2_MEM2MEM_DEV
tristate
depends on VIDEOBUF2_CORE
+# Used by LED subsystem flash drivers
+config V4L2_FLASH_LED_CLASS
+ tristate "V4L2 flash API for LED flash class devices"
+ depends on VIDEO_V4L2_SUBDEV_API
+ depends on LEDS_CLASS_FLASH
+ ---help---
+ Say Y here to enable V4L2 flash API support for LED flash
+ class drivers.
+
+ When in doubt, say N.
+
# Used by drivers that need Videobuf modules
config VIDEOBUF_GEN
tristate