SPINOR_OP_EN4B and SPINOR_OP_EX4B are defined twice in a row with the
same values. The second pair came in with the Macronix Octal DTR
opcodes in commit df3d5f9e410c ("mtd: spi-nor: add support for
Macronix Octal flash").Drop the second pair. No functional change. Signed-off-by: Aristo Chen <[email protected]> --- include/linux/mtd/spi-nor.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index 4eef4ab0488..b427253b910 100644 --- a/include/linux/mtd/spi-nor.h +++ b/include/linux/mtd/spi-nor.h @@ -125,8 +125,6 @@ /* Used for Macronix and Winbond flashes. */ #define SPINOR_OP_EN4B 0xb7 /* Enter 4-byte mode */ #define SPINOR_OP_EX4B 0xe9 /* Exit 4-byte mode */ -#define SPINOR_OP_EN4B 0xb7 /* Enter 4-byte mode */ -#define SPINOR_OP_EX4B 0xe9 /* Exit 4-byte mode */ #define SPINOR_OP_RD_CR2 0x71 /* Read configuration register 2 */ #define SPINOR_OP_WR_CR2 0x72 /* Write configuration register 2 */ #define SPINOR_OP_MXIC_DTR_RD 0xee /* Fast Read opcode in DTR mode */ -- 2.43.0
