History

mtd: spi-nor: Rename SR_TB to indicate the bit used

Each vendor uses different bits for SR_TB of flash. To avoid ambiguity, rename SR_TB to indicate the bit used.

Jungseung Lee committed 6 years ago

Commit 52487e21 parent 01916e02 files · +7 −6Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/mtd/spi-nor.h+2−1
@@ -128,7 +128,8 @@ · 127 unmodified lines
128128 #define SR_BP0 BIT(2) /* Block protect 0 */
129129 #define SR_BP1 BIT(3) /* Block protect 1 */
130130 #define SR_BP2 BIT(4) /* Block protect 2 */
131−#define SR_TB BIT(5) /* Top/Bottom protect */
131+#define SR_TB_BIT5 BIT(5) /* Top/Bottom protect */
132+#define SR_TB_BIT6 BIT(6) /* Top/Bottom protect */
132133 #define SR_SRWD BIT(7) /* SR write protect */
133134 /* Spansion/Cypress specific status bits */
134135 #define SR_E_ERR BIT(5)