diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-01-20 14:01:31 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-01-20 14:01:31 -0300 |
commit | b4b7ff4b08e691656c9d77c758fc355833128ac0 (patch) | |
tree | 82fcb00e6b918026dc9f2d1f05ed8eee83874cc0 /drivers/staging/mt29f_spinand/mt29f_spinand.h | |
parent | 35acfa0fc609f2a2cd95cef4a6a9c3a5c38f1778 (diff) |
Linux-libre 4.4-gnupck-4.4-gnu
Diffstat (limited to 'drivers/staging/mt29f_spinand/mt29f_spinand.h')
-rw-r--r-- | drivers/staging/mt29f_spinand/mt29f_spinand.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.h b/drivers/staging/mt29f_spinand/mt29f_spinand.h index 6c8e413b5..ae62975cf 100644 --- a/drivers/staging/mt29f_spinand/mt29f_spinand.h +++ b/drivers/staging/mt29f_spinand/mt29f_spinand.h @@ -44,19 +44,19 @@ /* status */ #define STATUS_OIP_MASK 0x01 -#define STATUS_READY (0 << 0) -#define STATUS_BUSY (1 << 0) +#define STATUS_READY 0 +#define STATUS_BUSY BIT(0) #define STATUS_E_FAIL_MASK 0x04 -#define STATUS_E_FAIL (1 << 2) +#define STATUS_E_FAIL BIT(2) #define STATUS_P_FAIL_MASK 0x08 -#define STATUS_P_FAIL (1 << 3) +#define STATUS_P_FAIL BIT(3) #define STATUS_ECC_MASK 0x30 -#define STATUS_ECC_1BIT_CORRECTED (1 << 4) -#define STATUS_ECC_ERROR (2 << 4) -#define STATUS_ECC_RESERVED (3 << 4) +#define STATUS_ECC_1BIT_CORRECTED BIT(4) +#define STATUS_ECC_ERROR BIT(5) +#define STATUS_ECC_RESERVED (BIT(5) | BIT(4)) /*ECC enable defines*/ #define OTP_ECC_MASK 0x10 @@ -84,8 +84,8 @@ struct spinand_info { }; struct spinand_state { - uint32_t col; - uint32_t row; + u32 col; + u32 row; int buf_ptr; u8 *buf; }; |