mtd: devices: m25p80: add support for mmap read request
authorVignesh R <vigneshr@ti.com>
Tue, 29 Mar 2016 05:46:17 +0000 (11:16 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Tue, 5 Apr 2016 18:06:57 +0000 (11:06 -0700)
commit08922f644878c9163ada8df3ef9def89be1d5e90
treed29bb6fade704b652cfbe40078eca606a083debb
parent5651d6aaf489d1db48c253cf884b40214e91c2c5
mtd: devices: m25p80: add support for mmap read request

Certain SPI controllers may provide accelerated hardware interface to
read from m25p80 type flash devices in order to provide better read
performance. SPI core supports such devices with spi_flash_read() API.
Call spi_flash_read(), if supported, to make use of such interface.

Signed-off-by: Vignesh R <vigneshr@ti.com>
[Brian: add memset()]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/m25p80.c