drivers: spi: Update drivers to use devicetree Kconfig symbol

Update spi drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.

Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
Kumar Gala 2022-07-20 16:14:56 -05:00 committed by Carles Cufí
commit 0be3a7604b
25 changed files with 50 additions and 32 deletions

View file

@ -3,6 +3,7 @@
config SPI_TELINK_B91
bool "Telink Semiconductor B91 SPI driver"
depends on SOC_RISCV_TELINK_B91
default y
depends on DT_HAS_TELINK_B91_SPI_ENABLED
help
Enables Telink B91 SPI driver.