mtd: spinand: Use the spi-mem dirmap API
authorBoris Brezillon <bbrezillon@kernel.org>
Thu, 24 Jan 2019 14:56:43 +0000 (15:56 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 21 Mar 2019 15:44:51 +0000 (16:44 +0100)
commit981d1aa0697ce1393e00933f154d181e965703d0
tree2f179a0260ef1e2d40289db798e5b208fe241ba1
parent9e98c678c2d6ae3a17cb2de55d17f69dddaa231b
mtd: spinand: Use the spi-mem dirmap API

Make use of the spi-mem direct mapping API to let advanced controllers
optimize read/write operations when they support direct mapping.

Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Stefan Roese <sr@denx.de>
drivers/mtd/nand/spi/core.c
include/linux/mtd/spinand.h