mtd: spi: Kconfig: Imply SPI_FLASH if DM_SPI_FLASH
PATCH v2 1/1 mtd: spi: Kconfig: Imply SPI_FLASH if DM_SPI_FLASH
DM_SPI_FLASH should require spi flash interface code for dm version, so select SPI_FLASH core by default if any board enabled DM_SPI_FLASH.
This overcome the explicit enablement of CONFIG_SPI_FLASH on respective boards when DM_SPI_FLASH being used.
Cc Vignesh R <[email protected]>
Signed-off-by Jagan Teki <[email protected]>
---
Changes for v2:
- use imply than select
drivers/mtd/spi/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/mtd/spi/Kconfig +1 -0
@@ -3,6 +3,7 @@ menu "SPI Flash Support" config DM_SPI_FLASH bool "Enable Driver Model for SPI flash" depends on DM && DM_SPI + imply SPI_FLASH help Enable driver model for SPI flash. This SPI flash interface (spi_flash_probe(), spi_flash_write(), etc.) is then
Signature · 1 line
2.18.0.321.gffc6fa0e3
Vignesh Raghavendra
maintainerPATCH v2 1/1 mtd: spi: Kconfig: Imply SPI_FLASH if DM_SPI_FLASH
Quoted 10 lines · Jagan Teki
DM_SPI_FLASHshould require spi flash interface code for dm version, so selectSPI_FLASHcore by default if any board enabledDM_SPI_FLASH.This overcome the explicit enablement of
CONFIG_SPI_FLASHon respective boards whenDM_SPI_FLASHbeing used.Cc Vignesh R <[email protected]>Signed-off-by Jagan Teki <[email protected]>---
Quoted 19 lines
Changes for v2:
- use imply than selectdrivers/mtd/spi/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/mtd/spi/Kconfig +1
-0@@ -3,6 +3,7 @@ menu "SPI Flash Support" config DM_SPI_FLASH bool "Enable Driver Model for SPI flash" depends on DM && DM_SPI + imply SPI_FLASH help Enable driver model for SPI flash. This SPI flash interface (spi_flash_probe(), spi_flash_write(), etc.) is then
Signature · 2 lines
Regards Vignesh