diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/nandsim.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c index 8a0a5d16e0eb..261337efe0ee 100644 --- a/drivers/mtd/nand/nandsim.c +++ b/drivers/mtd/nand/nandsim.c | |||
@@ -315,7 +315,7 @@ struct nandsim { | |||
315 | union ns_mem buf; | 315 | union ns_mem buf; |
316 | 316 | ||
317 | /* NAND flash "geometry" */ | 317 | /* NAND flash "geometry" */ |
318 | struct nandsin_geometry { | 318 | struct { |
319 | uint64_t totsz; /* total flash size, bytes */ | 319 | uint64_t totsz; /* total flash size, bytes */ |
320 | uint32_t secsz; /* flash sector (erase block) size, bytes */ | 320 | uint32_t secsz; /* flash sector (erase block) size, bytes */ |
321 | uint pgsz; /* NAND flash page size, bytes */ | 321 | uint pgsz; /* NAND flash page size, bytes */ |
@@ -334,7 +334,7 @@ struct nandsim { | |||
334 | } geom; | 334 | } geom; |
335 | 335 | ||
336 | /* NAND flash internal registers */ | 336 | /* NAND flash internal registers */ |
337 | struct nandsim_regs { | 337 | struct { |
338 | unsigned command; /* the command register */ | 338 | unsigned command; /* the command register */ |
339 | u_char status; /* the status register */ | 339 | u_char status; /* the status register */ |
340 | uint row; /* the page number */ | 340 | uint row; /* the page number */ |
@@ -345,7 +345,7 @@ struct nandsim { | |||
345 | } regs; | 345 | } regs; |
346 | 346 | ||
347 | /* NAND flash lines state */ | 347 | /* NAND flash lines state */ |
348 | struct ns_lines_status { | 348 | struct { |
349 | int ce; /* chip Enable */ | 349 | int ce; /* chip Enable */ |
350 | int cle; /* command Latch Enable */ | 350 | int cle; /* command Latch Enable */ |
351 | int ale; /* address Latch Enable */ | 351 | int ale; /* address Latch Enable */ |