vfio: Use kconfig if XX/endif blocks instead of repeating 'depends on'
This results in less kconfig wordage and a simpler understanding of the required "depends on" to create the menu structure. The next patch increases the nesting level a lot so this is a nice preparatory simplification. Signed-off-by:Jason Gunthorpe <jgg@nvidia.com> Reviewed-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Yishai Hadas <yishaih@nvidia.com> Link: https://lore.kernel.org/r/20210826103912.128972-13-yishaih@nvidia.com Signed-off-by:
Alex Williamson <alex.williamson@redhat.com>
Showing
- drivers/vfio/Kconfig 14 additions, 14 deletionsdrivers/vfio/Kconfig
- drivers/vfio/fsl-mc/Kconfig 1 addition, 1 deletiondrivers/vfio/fsl-mc/Kconfig
- drivers/vfio/mdev/Kconfig 0 additions, 1 deletiondrivers/vfio/mdev/Kconfig
- drivers/vfio/pci/Kconfig 6 additions, 5 deletionsdrivers/vfio/pci/Kconfig
- drivers/vfio/platform/Kconfig 4 additions, 2 deletionsdrivers/vfio/platform/Kconfig
- drivers/vfio/platform/reset/Kconfig 1 addition, 3 deletionsdrivers/vfio/platform/reset/Kconfig
Please register or sign in to comment