mtd: Get rid of unused fields in struct erase_info
authorBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 12 Feb 2018 21:03:08 +0000 (22:03 +0100)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 15 Mar 2018 16:25:06 +0000 (17:25 +0100)
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 <boris.brezillon@bootlin.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
include/linux/mtd/mtd.h

index 205ededccc60e11e67645dddd978c90501570494..2a407dc9beaa98ea07bae7ce2540d250aab93915 100644 (file)
@@ -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 {