-
- Downloads
mtd: spi-nor: Trim what is exposed in spi-nor.h
The SPI NOR controllers drivers must not be able to use structures that are meant just for the SPI NOR core. struct spi_nor_flash_parameter is filled at run-time with info gathered from flash_info, manufacturer and sfdp data. struct spi_nor_flash_parameter should be opaque to the SPI NOR controller drivers, make sure it is. spi_nor_option_flags, spi_nor_read_command, spi_nor_pp_command, spi_nor_read_command_index and spi_nor_pp_command_index are defined for the core use, make sure they are opaque to the SPI NOR controller drivers. 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/core.c 54 additions, 32 deletionsdrivers/mtd/spi-nor/core.c
- drivers/mtd/spi-nor/core.h 214 additions, 0 deletionsdrivers/mtd/spi-nor/core.h
- drivers/mtd/spi-nor/gigadevice.c 1 addition, 1 deletiondrivers/mtd/spi-nor/gigadevice.c
- drivers/mtd/spi-nor/issi.c 1 addition, 1 deletiondrivers/mtd/spi-nor/issi.c
- drivers/mtd/spi-nor/macronix.c 2 additions, 2 deletionsdrivers/mtd/spi-nor/macronix.c
- drivers/mtd/spi-nor/micron-st.c 2 additions, 2 deletionsdrivers/mtd/spi-nor/micron-st.c
- drivers/mtd/spi-nor/sfdp.c 10 additions, 0 deletionsdrivers/mtd/spi-nor/sfdp.c
- drivers/mtd/spi-nor/spansion.c 1 addition, 1 deletiondrivers/mtd/spi-nor/spansion.c
- drivers/mtd/spi-nor/winbond.c 1 addition, 1 deletiondrivers/mtd/spi-nor/winbond.c
- drivers/mtd/spi-nor/xilinx.c 2 additions, 2 deletionsdrivers/mtd/spi-nor/xilinx.c
- include/linux/mtd/spi-nor.h 6 additions, 254 deletionsinclude/linux/mtd/spi-nor.h
Loading
Please register or sign in to comment