path: root/drivers/mtd/devices/Kconfig
diff options
authorSteffen Trumtrar <>2019-05-03 11:34:00 +0200
committerSascha Hauer <>2019-05-08 10:54:27 +0200
commit80b6b874944d7982e6c79b78fff713f31c704c2a (patch)
tree891c4433ef0e8d7a1d6595b58a6c0d68d52d0c9d /drivers/mtd/devices/Kconfig
parentb90c959f5cb71d53c3ecaf4ffe39424aaf346b51 (diff)
mtd: devices: m25p80: use the spi_mem_xx() API
This is the barebox adoption of the linux v4.16 patch 4120f8d158ef904fb305b27e4a4524649faf3096 Author: Boris Brezillon <> AuthorDate: Thu Apr 26 18:18:19 2018 +0200 Commit: Mark Brown <> CommitDate: Fri May 11 11:33:51 2018 +0900 mtd: spi-nor: Use the spi_mem_xx() API The spi_mem_xxx() API has been introduced to replace the spi_flash_read() one. Make use of it so we can get rid of spi_flash_read(). Note that using spi_mem_xx() also simplifies the code because this API takes care of using the regular spi_sync() interface when the optimized ->mem_ops interface is not implemented by the controller. Signed-off-by: Boris Brezillon <> Reviewed-by: Frieder Schrempf <> Tested-by: Frieder Schrempf <> Signed-off-by: Mark Brown <> Signed-off-by: Steffen Trumtrar <> Signed-off-by: Sascha Hauer <>
Diffstat (limited to 'drivers/mtd/devices/Kconfig')
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig
index 9c3925b..25db10a 100644
--- a/drivers/mtd/devices/Kconfig
+++ b/drivers/mtd/devices/Kconfig
@@ -23,6 +23,7 @@ config MTD_M25P80
tristate "Support most SPI Flash chips (AT26DF, M25P, W25X, ...)"
depends on SPI
select MTD_SPI_NOR
+ select SPI_MEM
This enables access to most modern SPI flash chips, used for
program and data storage. Series supported include Atmel AT26DF,