diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2019-05-03 11:34:00 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-05-08 10:54:27 +0200 |
commit | 80b6b874944d7982e6c79b78fff713f31c704c2a (patch) | |
tree | 891c4433ef0e8d7a1d6595b58a6c0d68d52d0c9d /arch/ppc/cpu-85xx | |
parent | b90c959f5cb71d53c3ecaf4ffe39424aaf346b51 (diff) | |
download | barebox-80b6b874944d7982e6c79b78fff713f31c704c2a.tar.gz barebox-80b6b874944d7982e6c79b78fff713f31c704c2a.tar.xz |
mtd: devices: m25p80: use the spi_mem_xx() API
This is the barebox adoption of the linux v4.16 patch
4120f8d158ef904fb305b27e4a4524649faf3096
Author: Boris Brezillon <bbrezillon@kernel.org>
AuthorDate: Thu Apr 26 18:18:19 2018 +0200
Commit: Mark Brown <broonie@kernel.org>
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 <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>
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/cpu-85xx')
0 files changed, 0 insertions, 0 deletions