mtd: kill old field for `struct mtd_info_user'
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Mon Nov 7 11:59:33 EST 2011
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=19fb4341ad7a72e4c996234a1834e52e1f7954ba
Commit: 19fb4341ad7a72e4c996234a1834e52e1f7954ba
Parent: 4a89ff885ff9f64ea62669100766e10e4e257c6e
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Tue Aug 30 18:45:46 2011 -0700
Committer: Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:57:44 2011 +0300
mtd: kill old field for `struct mtd_info_user'
The ecctype and eccsize fields have been obsolete for a while. Since they
don't have any users, we can kill them and leave padding in their place
for now.
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy at intel.com>
---
drivers/mtd/mtdchar.c | 4 ++--
include/mtd/mtd-abi.h | 5 +----
2 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index 1547e2a..8feb5fd 100644
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
@@ -672,8 +672,8 @@ static int mtd_ioctl(struct file *file, u_int cmd, u_long arg)
info.erasesize = mtd->erasesize;
info.writesize = mtd->writesize;
info.oobsize = mtd->oobsize;
- /* The below fields are obsolete */
- info.ecctype = -1;
+ /* The below field is obsolete */
+ info.padding = 0;
if (copy_to_user(argp, &info, sizeof(struct mtd_info_user)))
return -EFAULT;
break;
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index 7dee970..1a7e1d2 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -129,10 +129,7 @@ struct mtd_info_user {
__u32 erasesize;
__u32 writesize;
__u32 oobsize; /* Amount of OOB data per block (e.g. 16) */
- /* The below two fields are obsolete and broken, do not use them
- * (TODO: remove at some point) */
- __u32 ecctype;
- __u32 eccsize;
+ __u64 padding; /* Old obsolete field; do not use */
};
struct region_info_user {
More information about the linux-mtd-cvs
mailing list