diff options
author | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-27 14:36:12 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@cruncher.tec.linutronix.de> | 2006-05-29 09:06:49 -0400 |
commit | ff268fb8791cf18df536113355d7184007c269d9 (patch) | |
tree | 3a7d9fc72b28f5a0f11a2f8b08174b1bee6ea20d /include/linux/mtd | |
parent | 8be834f76291fdcc0614cb84926c6910b9f2ecbc (diff) |
[MTD] NAND Consolidate oobinfo handling
The info structure for out of band data was copied into
the mtd structure. Make it a pointer and remove the ability
to set it from userspace. The position of ecc bytes is
defined by the hardware and should not be changed by software.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/mtd.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 41a984dcb139..8429da51bb09 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h | |||
@@ -101,9 +101,8 @@ struct mtd_info { | |||
101 | char *name; | 101 | char *name; |
102 | int index; | 102 | int index; |
103 | 103 | ||
104 | // oobinfo is a nand_oobinfo structure, which can be set by iotcl (MEMSETOOBINFO) | 104 | /* oobinfo structure pointer - read only ! */ |
105 | struct nand_oobinfo oobinfo; | 105 | struct nand_oobinfo *oobinfo; |
106 | u_int32_t oobavail; // Number of bytes in OOB area available for fs | ||
107 | 106 | ||
108 | /* Data for variable erase regions. If numeraseregions is zero, | 107 | /* Data for variable erase regions. If numeraseregions is zero, |
109 | * it means that the whole device has erasesize as given above. | 108 | * it means that the whole device has erasesize as given above. |