mtd: spi-nor: rename SPINOR_OP_* macros of the 4-byte address op codes
authorCyrille Pitchen <cyrille.pitchen@atmel.com>
Thu, 27 Oct 2016 09:55:39 +0000 (11:55 +0200)
committerCyrille Pitchen <cyrille.pitchen@atmel.com>
Fri, 10 Feb 2017 12:55:03 +0000 (13:55 +0100)
commit902cc69a0820252c84c6f7caed350882cea166ba
tree3fbcf15a1ec5a2fae4142b4ebaaac924991ad2d2
parent9e276de6a367cde07c1a63522152985d4e5cca8b
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>
drivers/mtd/devices/serial_flash_cmds.h
drivers/mtd/devices/st_spi_fsm.c
drivers/mtd/spi-nor/spi-nor.c
drivers/spi/spi-bcm-qspi.c
include/linux/mtd/spi-nor.h