From: Boris Brezillon Date: Mon, 12 Feb 2018 21:03:08 +0000 (+0100) Subject: mtd: Get rid of unused fields in struct erase_info X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=dcba51bbb9e0cc7f80d36eb20a033a4dff2ce9cc;p=openwrt%2Fstaging%2Fblogic.git mtd: Get rid of unused fields in struct erase_info Some fields are not used by MTD drivers, users or core code. Moreover, those fields are not documented, so get rid of them to avoid any confusion. Signed-off-by: Boris Brezillon Reviewed-by: Richard Weinberger --- diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 205ededccc60..2a407dc9beaa 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -48,14 +48,9 @@ struct erase_info { uint64_t addr; uint64_t len; uint64_t fail_addr; - u_long time; - u_long retries; - unsigned dev; - unsigned cell; void (*callback) (struct erase_info *self); u_long priv; u_char state; - struct erase_info *next; }; struct mtd_erase_region_info {