]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: spi-nor: Use the spi_mem_xx() API
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 26 Apr 2018 16:18:19 +0000 (18:18 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 11 May 2018 02:33:51 +0000 (11:33 +0900)
commita4cd3148e06330b933ce1f877675108ad7b773b0
tree0ec931c1e37ca8a62928142a5a1ff0d88d08b18d
parente2d72387eba3a4aedfc60c345e01f66b79e74c9b
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 <boris.brezillon@bootlin.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@exceet.de>
Tested-by: Frieder Schrempf <frieder.schrempf@exceet.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/mtd/devices/Kconfig
drivers/mtd/devices/m25p80.c