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:
parent
dea8118114
commit
0be3a7604b
25 changed files with 50 additions and 32 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue