linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/tegra: Kconfig: Express the dependency by using the depends on
@ 2023-06-26 14:54 Sui Jingfeng
  0 siblings, 0 replies; only message in thread
From: Sui Jingfeng @ 2023-06-26 14:54 UTC (permalink / raw)
  To: Thierry Reding, Mikko Perttunen, David Airlie, Daniel Vetter,
	Jonathan Hunter
  Cc: dri-devel, linux-tegra, linux-kernel

Because using the 'depends on' is easy to understand and more obvious.

Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
---
 drivers/gpu/drm/tegra/Kconfig | 6 ++----
 drivers/gpu/host1x/Kconfig    | 5 +----
 2 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/drivers/gpu/drm/tegra/Kconfig b/drivers/gpu/drm/tegra/Kconfig
index 498313778175..e7e3856665b1 100644
--- a/drivers/gpu/drm/tegra/Kconfig
+++ b/drivers/gpu/drm/tegra/Kconfig
@@ -26,19 +26,17 @@ config DRM_TEGRA
 	  To compile this driver as a module, choose M here: the module
 	  will be called tegra-drm.
 
-if DRM_TEGRA
-
 config DRM_TEGRA_DEBUG
 	bool "NVIDIA Tegra DRM debug support"
+	depends on DRM_TEGRA
 	help
 	  Say yes here to enable debugging support.
 
 config DRM_TEGRA_STAGING
 	bool "Enable HOST1X interface"
+	depends on DRM_TEGRA
 	depends on STAGING
 	help
 	  Say yes if HOST1X should be available for userspace DRM users.
 
 	  If unsure, choose N.
-
-endif
diff --git a/drivers/gpu/host1x/Kconfig b/drivers/gpu/host1x/Kconfig
index e6c78ae2003a..36eb98d93637 100644
--- a/drivers/gpu/host1x/Kconfig
+++ b/drivers/gpu/host1x/Kconfig
@@ -17,14 +17,11 @@ config TEGRA_HOST1X
 	  by host1x are referred to as clients. host1x includes some other
 	  functionality, such as synchronization.
 
-if TEGRA_HOST1X
-
 config TEGRA_HOST1X_FIREWALL
 	bool "Enable HOST1X security firewall"
+	depends on TEGRA_HOST1X
 	default y
 	help
 	  Say yes if kernel should protect command streams from tampering.
 
 	  If unsure, choose Y.
-
-endif
-- 
2.25.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-26 14:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-26 14:54 [PATCH] drm/tegra: Kconfig: Express the dependency by using the depends on Sui Jingfeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).