vfio: Use kconfig if XX/endif blocks instead of repeating 'depends on'
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Aug 2021 10:39:11 +0000 (13:39 +0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 26 Aug 2021 16:36:51 +0000 (10:36 -0600)
commit85c94dcffcb775bafffd6e966db49253e1b789d9
treecc5de0fdae0bd4fca88bb82541a3de4bd585629a
parentca4ddaac7fa710a250bbd650cc719425bec973a0
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>
drivers/vfio/Kconfig
drivers/vfio/fsl-mc/Kconfig
drivers/vfio/mdev/Kconfig
drivers/vfio/pci/Kconfig
drivers/vfio/platform/Kconfig
drivers/vfio/platform/reset/Kconfig