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@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
This commit is contained in:
parent
4a89ff885f
commit
19fb4341ad
|
@ -672,8 +672,8 @@ static int mtd_ioctl(struct file *file, u_int cmd, u_long arg)
|
||||||
info.erasesize = mtd->erasesize;
|
info.erasesize = mtd->erasesize;
|
||||||
info.writesize = mtd->writesize;
|
info.writesize = mtd->writesize;
|
||||||
info.oobsize = mtd->oobsize;
|
info.oobsize = mtd->oobsize;
|
||||||
/* The below fields are obsolete */
|
/* The below field is obsolete */
|
||||||
info.ecctype = -1;
|
info.padding = 0;
|
||||||
if (copy_to_user(argp, &info, sizeof(struct mtd_info_user)))
|
if (copy_to_user(argp, &info, sizeof(struct mtd_info_user)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -129,10 +129,7 @@ struct mtd_info_user {
|
||||||
__u32 erasesize;
|
__u32 erasesize;
|
||||||
__u32 writesize;
|
__u32 writesize;
|
||||||
__u32 oobsize; /* Amount of OOB data per block (e.g. 16) */
|
__u32 oobsize; /* Amount of OOB data per block (e.g. 16) */
|
||||||
/* The below two fields are obsolete and broken, do not use them
|
__u64 padding; /* Old obsolete field; do not use */
|
||||||
* (TODO: remove at some point) */
|
|
||||||
__u32 ecctype;
|
|
||||||
__u32 eccsize;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
struct region_info_user {
|
struct region_info_user {
|
||||||
|
|
Loading…
Reference in New Issue