mtd: spi-nor: Move SFDP logic out of the core
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 13 Mar 2020 19:42:37 +0000 (19:42 +0000)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 16 Mar 2020 16:28:53 +0000 (18:28 +0200)
commitcb481b92d10fdb0027c7f96576b640c28a5e4179
tree766ec3a6fe7038a2c44e56071e252943b5b22d96
parenta0900d0195d2dcce464f4109445a788d5860b970
mtd: spi-nor: Move SFDP logic out of the core

It makes the core file a bit smaller and provides better separation
between the SFDP parsing and core logic.

Keep the core.h and sfdp.h definitions private in drivers/mtd/spi-nor/.
Both expose just the definitions that are required by the core and
manufacturer drivers. None of the SPI NOR controller drivers should
include them.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/mtd/spi-nor/Makefile
drivers/mtd/spi-nor/core.c
drivers/mtd/spi-nor/core.h [new file with mode: 0644]
drivers/mtd/spi-nor/sfdp.c [new file with mode: 0644]
drivers/mtd/spi-nor/sfdp.h [new file with mode: 0644]