aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/Kconfig
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel@collabora.com>2019-07-27 10:31:29 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-08-19 12:00:29 -0300
commit4fa4ef39e1c48b576a6a7f49c7410277e7ba09fa (patch)
tree1b314c271ac4fbe324870931b5c1a8eec3a48b34 /drivers/media/Kconfig
parentmedia: MAINTAINERS: Add entry for the ov5670 driver (diff)
downloadwireguard-linux-4fa4ef39e1c48b576a6a7f49c7410277e7ba09fa.tar.xz
wireguard-linux-4fa4ef39e1c48b576a6a7f49c7410277e7ba09fa.zip
media: Clarify how menus are hidden by SUBDRV_AUTOSELECT
Some users have been having a hard time finding the hidden menus. A typically case are camera sensor drivers (e.g IMX219, OV5645, etc), which are common on embedded platforms and not really "ancillary" devices. The problem with MEDIA_SUBDRV_AUTOSELECT seems to be related to the fact that it uses the "visible" syntax to hide the menus. This is not obvious and it normally takes some time to figure out. To fix the problem, add a comment on each of hidden menus, which should clarify what option is causing menus to be hidden. Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/Kconfig')
-rw-r--r--drivers/media/Kconfig5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/Kconfig b/drivers/media/Kconfig
index 8404e80aa38e..b36a41332867 100644
--- a/drivers/media/Kconfig
+++ b/drivers/media/Kconfig
@@ -207,6 +207,11 @@ config MEDIA_SUBDRV_AUTOSELECT
If unsure say Y.
+config MEDIA_HIDE_ANCILLARY_SUBDRV
+ bool
+ depends on MEDIA_SUBDRV_AUTOSELECT && !COMPILE_TEST && !EXPERT
+ default y
+
config MEDIA_ATTACH
bool
depends on MEDIA_ANALOG_TV_SUPPORT || MEDIA_DIGITAL_TV_SUPPORT || MEDIA_RADIO_SUPPORT