scsi: ufs: Wrap Universal Flash Storage drivers in SCSI_UFSHCD
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 6 Nov 2021 16:46:50 +0000 (17:46 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 19 Nov 2021 03:26:59 +0000 (22:26 -0500)
commitd28a78537d1d79f1ba6b9e68f5d44cc869045afe
treeb866cab7f945ccafb1cff281f5972e2645a5fc78
parent0137b129f215fb5d0209c5c91984b2f44f2d98cc
scsi: ufs: Wrap Universal Flash Storage drivers in SCSI_UFSHCD

The build only descends into drivers/scsi/ufs/ if SCSI_UFSHCD is enabled.
Hence all later config symbols should depend on SCSI_UFSHCD to prevent
asking the user about config symbols for driver code that won't be built
anyway.  Unfortunately not all symbols have that dependency.

Fix this by wrapping them all into a big if/endif block.  Remove the now
superfluous explicit dependencies on SCSI_UFSHCD from all symbols that
already had it.

Link: https://lore.kernel.org/r/20211106164650.1571068-1-geert@linux-m68k.org
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/Kconfig