File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5099,8 +5099,8 @@ static int of_get_nand_ecc_mode(struct device_node *np)
5099
5099
5100
5100
/*
5101
5101
* For backward compatibility we support few obsoleted values that don't
5102
- * have their mappings into nand_ecc_modes_t anymore (they were merged
5103
- * with other enums).
5102
+ * have their mappings into the nand_ecc_mode enum anymore (they were
5103
+ * merged with other enums).
5104
5104
*/
5105
5105
if (!strcasecmp (pm , "soft_bch" ))
5106
5106
return NAND_ECC_SOFT ;
Original file line number Diff line number Diff line change @@ -83,14 +83,14 @@ struct nand_chip;
83
83
/*
84
84
* Constants for ECC_MODES
85
85
*/
86
- typedef enum {
86
+ enum nand_ecc_mode {
87
87
NAND_ECC_NONE ,
88
88
NAND_ECC_SOFT ,
89
89
NAND_ECC_HW ,
90
90
NAND_ECC_HW_SYNDROME ,
91
91
NAND_ECC_HW_OOB_FIRST ,
92
92
NAND_ECC_ON_DIE ,
93
- } nand_ecc_modes_t ;
93
+ };
94
94
95
95
enum nand_ecc_algo {
96
96
NAND_ECC_UNKNOWN ,
@@ -362,7 +362,7 @@ static const struct nand_ecc_caps __name = { \
362
362
* @write_oob: function to write chip OOB data
363
363
*/
364
364
struct nand_ecc_ctrl {
365
- nand_ecc_modes_t mode ;
365
+ enum nand_ecc_mode mode ;
366
366
enum nand_ecc_algo algo ;
367
367
int steps ;
368
368
int size ;
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ struct davinci_nand_pdata { /* platform_data */
68
68
* Newer ones also support 4-bit ECC, but are awkward
69
69
* using it with large page chips.
70
70
*/
71
- nand_ecc_modes_t ecc_mode ;
71
+ enum nand_ecc_mode ecc_mode ;
72
72
u8 ecc_bits ;
73
73
74
74
/* e.g. NAND_BUSWIDTH_16 */
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ struct s3c2410_platform_nand {
49
49
50
50
unsigned int ignore_unset_ecc :1 ;
51
51
52
- nand_ecc_modes_t ecc_mode ;
52
+ enum nand_ecc_mode ecc_mode ;
53
53
54
54
int nr_sets ;
55
55
struct s3c2410_nand_set * sets ;
You can’t perform that action at this time.
0 commit comments