mtd: spi-nor: rename SPINOR_OP_* macros of the 4-byte address op codes
This patch renames the SPINOR_OP_* macros of the 4-byte address instruction set so the new names all share a common pattern: the 4-byte address name is built from the 3-byte address name appending the "_4B" suffix. The patch also introduces new op codes to support other SPI protocols such as SPI 1-4-4 and SPI 1-2-2. This is a transitional patch and will help a later patch of spi-nor.c to automate the translation from the 3-byte address op codes into their 4-byte address version. Signed-off-by:Cyrille Pitchen <cyrille.pitchen@atmel.com> Acked-by:
Mark Brown <broonie@kernel.org> Acked-by:
Marek Vasut <marek.vasut@gmail.com>
Showing
- drivers/mtd/devices/serial_flash_cmds.h 0 additions, 7 deletionsdrivers/mtd/devices/serial_flash_cmds.h
- drivers/mtd/devices/st_spi_fsm.c 14 additions, 14 deletionsdrivers/mtd/devices/st_spi_fsm.c
- drivers/mtd/spi-nor/spi-nor.c 4 additions, 4 deletionsdrivers/mtd/spi-nor/spi-nor.c
- drivers/spi/spi-bcm-qspi.c 3 additions, 3 deletionsdrivers/spi/spi-bcm-qspi.c
- include/linux/mtd/spi-nor.h 16 additions, 6 deletionsinclude/linux/mtd/spi-nor.h
Please register or sign in to comment