summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2020-08-24 13:55:52 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2020-09-16 14:57:46 +0300
commit8eabfca523337e62e393f2c336d93534058b7311 (patch)
treebdde68f3419921deaadd79f930af3af9935c0cc2
parent2c6ea4e2cefe2e86af782a5b8e1070f4d434f2f2 (diff)
downloadlinux-8eabfca523337e62e393f2c336d93534058b7311.tar.xz
thunderbolt: Use "if USB4" instead of "depends on" in Kconfig
This groups the USB4 options more nicely, and also does not require that every config option lists explicit depends on USB4. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
-rw-r--r--drivers/thunderbolt/Kconfig6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/thunderbolt/Kconfig b/drivers/thunderbolt/Kconfig
index afa3551633aa..7fc058f81d00 100644
--- a/drivers/thunderbolt/Kconfig
+++ b/drivers/thunderbolt/Kconfig
@@ -16,9 +16,10 @@ menuconfig USB4
To compile this driver a module, choose M here. The module will be
called thunderbolt.
+if USB4
+
config USB4_DEBUGFS_WRITE
bool "Enable write by debugfs to configuration spaces (DANGEROUS)"
- depends on USB4
help
Enables writing to device configuration registers through
debugfs interface.
@@ -28,5 +29,6 @@ config USB4_DEBUGFS_WRITE
config USB4_KUNIT_TEST
bool "KUnit tests"
- depends on USB4
depends on KUNIT=y
+
+endif # USB4