Browse Source

nand_ecclayout_t -> struct nand_ecclayout

Remove misleading typedef and redundant suffix from struct nand_ecclayout.
tags/v0.4.0-rc1
Zachary T Welch 14 years ago
parent
commit
8f4860d13f
2 changed files with 5 additions and 5 deletions
  1. +3
    -3
      src/flash/nand.c
  2. +2
    -2
      src/flash/nand.h

+ 3
- 3
src/flash/nand.c View File

@@ -173,7 +173,7 @@ static nand_manufacturer_t nand_manuf_ids[] =
*/

#if 0
static nand_ecclayout_t nand_oob_8 = {
static struct nand_ecclayout nand_oob_8 = {
.eccbytes = 3,
.eccpos = {0, 1, 2},
.oobfree = {
@@ -184,7 +184,7 @@ static nand_ecclayout_t nand_oob_8 = {
};
#endif

static nand_ecclayout_t nand_oob_16 = {
static struct nand_ecclayout nand_oob_16 = {
.eccbytes = 6,
.eccpos = {0, 1, 2, 3, 6, 7},
.oobfree = {
@@ -192,7 +192,7 @@ static nand_ecclayout_t nand_oob_16 = {
. length = 8}}
};

static nand_ecclayout_t nand_oob_64 = {
static struct nand_ecclayout nand_oob_64 = {
.eccbytes = 24,
.eccpos = {
40, 41, 42, 43, 44, 45, 46, 47,


+ 2
- 2
src/flash/nand.h View File

@@ -66,12 +66,12 @@ struct nand_oobfree {
int length;
};

typedef struct nand_ecclayout_s {
struct nand_ecclayout {
int eccbytes;
int eccpos[64];
int oobavail;
struct nand_oobfree oobfree[2];
} nand_ecclayout_t;
};

typedef struct nand_device_s
{


Loading…
Cancel
Save