mtd: spi-nor: move #define SPINOR_OP_WRDI
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 7 Apr 2020 20:56:43 +0000 (23:56 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Mon, 20 Apr 2020 09:21:17 +0000 (12:21 +0300)
The write disable (WRDI) opcode is not really specific to the SST flashes
(anymore?) -- move the #define to the main opcode group, just before WREN.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
include/linux/mtd/spi-nor.h

index 1e2af0ec1f03e6831891ff4ad8a540ed398459c1..1cc8ed5d59edbeaebd5b422cb8c87cdc311b657b 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 /* Flash opcodes. */
+#define SPINOR_OP_WRDI         0x04    /* Write disable */
 #define SPINOR_OP_WREN         0x06    /* Write enable */
 #define SPINOR_OP_RDSR         0x05    /* Read status register */
 #define SPINOR_OP_WRSR         0x01    /* Write status register 1 byte */
@@ -80,7 +81,6 @@
 
 /* Used for SST flashes only. */
 #define SPINOR_OP_BP           0x02    /* Byte program */
-#define SPINOR_OP_WRDI         0x04    /* Write disable */
 #define SPINOR_OP_AAI_WP       0xad    /* Auto address increment word program */
 
 /* Used for S3AN flashes only */