mtd: spi-nor: renumber flags

As we have deleted some flag, lets renumber them so there are no holes.

Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20220223134358.1914798-33-michael@walle.cc
This commit is contained in:
Michael Walle 2022-02-23 14:43:58 +01:00 committed by Tudor Ambarus
parent e9d663a2a0
commit 3c552889e4
1 changed files with 14 additions and 14 deletions

View File

@ -12,20 +12,20 @@
#define SPI_NOR_MAX_ID_LEN 6 #define SPI_NOR_MAX_ID_LEN 6
enum spi_nor_option_flags { enum spi_nor_option_flags {
SNOR_F_HAS_SR_TB = BIT(1), SNOR_F_HAS_SR_TB = BIT(0),
SNOR_F_NO_OP_CHIP_ERASE = BIT(2), SNOR_F_NO_OP_CHIP_ERASE = BIT(1),
SNOR_F_BROKEN_RESET = BIT(5), SNOR_F_BROKEN_RESET = BIT(2),
SNOR_F_4B_OPCODES = BIT(6), SNOR_F_4B_OPCODES = BIT(3),
SNOR_F_HAS_4BAIT = BIT(7), SNOR_F_HAS_4BAIT = BIT(4),
SNOR_F_HAS_LOCK = BIT(8), SNOR_F_HAS_LOCK = BIT(5),
SNOR_F_HAS_16BIT_SR = BIT(9), SNOR_F_HAS_16BIT_SR = BIT(6),
SNOR_F_NO_READ_CR = BIT(10), SNOR_F_NO_READ_CR = BIT(7),
SNOR_F_HAS_SR_TB_BIT6 = BIT(11), SNOR_F_HAS_SR_TB_BIT6 = BIT(8),
SNOR_F_HAS_4BIT_BP = BIT(12), SNOR_F_HAS_4BIT_BP = BIT(9),
SNOR_F_HAS_SR_BP3_BIT6 = BIT(13), SNOR_F_HAS_SR_BP3_BIT6 = BIT(10),
SNOR_F_IO_MODE_EN_VOLATILE = BIT(14), SNOR_F_IO_MODE_EN_VOLATILE = BIT(11),
SNOR_F_SOFT_RESET = BIT(15), SNOR_F_SOFT_RESET = BIT(12),
SNOR_F_SWP_IS_VOLATILE = BIT(16), SNOR_F_SWP_IS_VOLATILE = BIT(13),
}; };
struct spi_nor_read_command { struct spi_nor_read_command {