All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
To: Linux Media Mailing List <linux-media@vger.kernel.org>
Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Subject: [PATCH 2/7] media: Kconfig: mark other drivers as test drivers
Date: Thu, 26 Mar 2020 16:21:27 +0100	[thread overview]
Message-ID: <11575cad9a4fe2b4d6b929f29c6eaec6f978fbc1.1585235736.git.mchehab+huawei@kernel.org> (raw)
In-Reply-To: <cover.1585235736.git.mchehab+huawei@kernel.org>

Neither the PCI skeleton nor the DVB dummy driver are real
drivers. They're there just as an example for a driver
writter.

Distros should not enable those drivers. So, hide them if
MEDIA_TEST_SUPPORT is not selected.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
---
 drivers/media/dvb-frontends/Kconfig | 4 ++++
 drivers/media/pci/Kconfig           | 1 +
 2 files changed, 5 insertions(+)

diff --git a/drivers/media/dvb-frontends/Kconfig b/drivers/media/dvb-frontends/Kconfig
index a29e9ddf9c82..932fd88fdc12 100644
--- a/drivers/media/dvb-frontends/Kconfig
+++ b/drivers/media/dvb-frontends/Kconfig
@@ -944,8 +944,12 @@ config DVB_SP2
 	  CIMaX SP2/SP2HF Common Interface module.
 
 comment "Tools to develop new frontends"
+	depends on MEDIA_TEST_SUPPORT
 
 config DVB_DUMMY_FE
 	tristate "Dummy frontend driver"
 	depends on DVB_CORE
+	depends on MEDIA_TEST_SUPPORT
+	help
+	  Dummy skeleton frontend driver.
 endmenu
diff --git a/drivers/media/pci/Kconfig b/drivers/media/pci/Kconfig
index 21ee43fd7d8e..348da044ec78 100644
--- a/drivers/media/pci/Kconfig
+++ b/drivers/media/pci/Kconfig
@@ -65,6 +65,7 @@ source "drivers/media/pci/intel/ipu3/Kconfig"
 
 config VIDEO_PCI_SKELETON
 	tristate "Skeleton PCI V4L2 driver"
+	depends on MEDIA_TEST_SUPPORT
 	depends on PCI
 	depends on SAMPLES
 	depends on VIDEO_V4L2 && VIDEOBUF2_CORE
-- 
2.25.1


  parent reply	other threads:[~2020-03-26 15:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-26 15:21 [PATCH 0/7] media Kconfig reorg - part 3 Mauro Carvalho Chehab
2020-03-26 15:21 ` Mauro Carvalho Chehab
2020-03-26 15:21 ` Mauro Carvalho Chehab
2020-03-26 15:21 ` [PATCH 1/7] media: Kconfig: warn if drivers are filtered Mauro Carvalho Chehab
2020-03-26 15:21 ` Mauro Carvalho Chehab [this message]
2020-03-26 15:21 ` [PATCH 3/7] media: ddbridge: copy the dvb_dummy_fe driver to ddbridge Mauro Carvalho Chehab
2020-03-26 15:21 ` [PATCH 4/7] media: ddbridge-dummy_fe: do some vars and function renames Mauro Carvalho Chehab
2020-03-26 15:21 ` [PATCH 5/7] media: ddbridge: use the ddbridge's own dummy fe driver Mauro Carvalho Chehab
2020-03-26 15:21 ` [PATCH 6/7] media: Kconfig: fix selection for test drivers Mauro Carvalho Chehab
2020-03-26 15:21 ` [PATCH 7/7] media: add SPDX headers on Kconfig and Makefile files Mauro Carvalho Chehab
2020-03-26 15:21   ` Mauro Carvalho Chehab
2020-03-26 15:21   ` Mauro Carvalho Chehab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11575cad9a4fe2b4d6b929f29c6eaec6f978fbc1.1585235736.git.mchehab+huawei@kernel.org \
    --to=mchehab+huawei@kernel.org \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.