aboutsummaryrefslogtreecommitdiffstats
path: root/include/mtd
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2010-09-20 02:57:12 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-10-24 18:37:27 -0400
commit0ceacf36e9c41859a6072342d27cf6e60776c523 (patch)
treed2495228b90bc94c7ebd7209d82310e5d72ec723 /include/mtd
parentcc26c3cd3d1cf40a07f2b19ac4c53d517bee52a5 (diff)
mtd: edit comments on deprecation of ioctl ECCGETLAYOUT
There were some improvements and additions necessary in the comments explaining of the expansion of nand_ecclayout, the introduction of nand_ecclayout_user, and the deprecation of the ioctl ECCGETLAYOUT. Also, I found a better placement for the macro MTD_MAX_ECCPOS_ENTRIES; next to the definition of MTD_MAX_OOBFREE_ENTRIES in mtd-abi.h. The macro is really only important for the ioctl code (found in drivers/mtd/mtdchar.c) but since there are small edits being made to the user-space header, I figured this is a better location. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/mtd')
-rw-r--r--include/mtd/mtd-abi.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index 5bce08384345..a57c4cb7d6b2 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -144,13 +144,18 @@ struct nand_oobfree {
144}; 144};
145 145
146#define MTD_MAX_OOBFREE_ENTRIES 8 146#define MTD_MAX_OOBFREE_ENTRIES 8
147#define MTD_MAX_ECCPOS_ENTRIES 64
147/* 148/*
148 * ECC layout control structure. Exported to userspace for 149 * OBSOLETE: ECC layout control structure. Exported to user-space via ioctl
149 * diagnosis and to allow creation of raw images 150 * ECCGETLAYOUT for backwards compatbility and should not be mistaken as a
151 * complete set of ECC information. The ioctl truncates the larger internal
152 * structure to retain binary compatibility with the static declaration of the
153 * ioctl. Note that the "MTD_MAX_..._ENTRIES" macros represent the max size of
154 * the user struct, not the MAX size of the internal struct nand_ecclayout.
150 */ 155 */
151struct nand_ecclayout_user { 156struct nand_ecclayout_user {
152 __u32 eccbytes; 157 __u32 eccbytes;
153 __u32 eccpos[64]; 158 __u32 eccpos[MTD_MAX_ECCPOS_ENTRIES];
154 __u32 oobavail; 159 __u32 oobavail;
155 struct nand_oobfree oobfree[MTD_MAX_OOBFREE_ENTRIES]; 160 struct nand_oobfree oobfree[MTD_MAX_OOBFREE_ENTRIES];
156}; 161};