iommu/vt-d: Refactor Kconfig a bit
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 18 Aug 2021 13:48:46 +0000 (21:48 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 19 Aug 2021 08:41:08 +0000 (10:41 +0200)
commit01dac2d9d2364d2a68b37cc1381947ca53413b51
tree4646878f3c0bf65f73e5a3bfa57ffad03a8aa020
parent5e41c998949377c80d03610600228022430daf45
iommu/vt-d: Refactor Kconfig a bit

Put all sub-options inside a "if INTEL_IOMMU" so that they don't need to
always depend on INTEL_IOMMU. Use IS_ENABLED() instead of #ifdef as well.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210720013856.4143880-1-baolu.lu@linux.intel.com
Link: https://lore.kernel.org/r/20210818134852.1847070-4-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/Kconfig
drivers/iommu/intel/iommu.c