[PATCH] drm/tegra: Kconfig: Express the dependency by using the depends on

From: Sui Jingfeng
Date: Mon Jun 26 2023 - 10:55:10 EST


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

Signed-off-by: Sui Jingfeng <suijingfeng@xxxxxxxxxxx>
---
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