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>
Showing
- drivers/mtd/spi-nor/Makefile 1 addition, 1 deletiondrivers/mtd/spi-nor/Makefile
- drivers/mtd/spi-nor/core.c 19 additions, 1296 deletionsdrivers/mtd/spi-nor/core.c
- drivers/mtd/spi-nor/core.h 36 additions, 0 deletionsdrivers/mtd/spi-nor/core.h
- drivers/mtd/spi-nor/sfdp.c 1195 additions, 0 deletionsdrivers/mtd/spi-nor/sfdp.c
- drivers/mtd/spi-nor/sfdp.h 98 additions, 0 deletionsdrivers/mtd/spi-nor/sfdp.h
Please register or sign in to comment