mtd: spi-nor: use spi-mem dirmap API
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 18 Feb 2020 21:24:10 +0000 (00:24 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Wed, 19 Feb 2020 07:17:33 +0000 (09:17 +0200)
commitdf5c21002cf4bb9c755c6330d101487c5d530c10
treea5de3b00b4d3f1f7c744d5d8ef5a0ac178210fdf
parentb7ad6be2ee67b12cba31d30deb34beab19acac57
mtd: spi-nor: use 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.

Based on the original patch by Boris Brezillon
<boris.brezillon@bootlin.com>.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/spi-nor.c
include/linux/mtd/spi-nor.h