aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/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/linux/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/linux/mtd')
-rw-r--r--include/linux/mtd/mtd.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 03a1e954c586..fe8d77ebec13 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -112,11 +112,11 @@ struct mtd_oob_ops {
112 112
113#define MTD_MAX_OOBFREE_ENTRIES_LARGE 32 113#define MTD_MAX_OOBFREE_ENTRIES_LARGE 32
114#define MTD_MAX_ECCPOS_ENTRIES_LARGE 448 114#define MTD_MAX_ECCPOS_ENTRIES_LARGE 448
115#define MTD_MAX_ECCPOS_ENTRIES_OLD 64 /* Previous maximum */
116/* 115/*
117 * Correct ECC layout control structure. This replaces old nand_ecclayout 116 * Internal ECC layout control structure. For historical reasons, there is a
118 * (mtd-abi.h) that is exported via ECCGETLAYOUT ioctl. It should be expandable 117 * similar, smaller struct nand_ecclayout_user (in mtd-abi.h) that is retained
119 * in the future simply by the above macros. 118 * for export to user-space via the ECCGETLAYOUT ioctl.
119 * nand_ecclayout should be expandable in the future simply by the above macros.
120 */ 120 */
121struct nand_ecclayout { 121struct nand_ecclayout {
122 __u32 eccbytes; 122 __u32 eccbytes;