Re: [U-Boot] [PATCH v7 11/12] cmd: ubi: clean the partition handling

2018-09-06 Thread Boris Brezillon
Hi Miquel, On Thu, 6 Sep 2018 09:08:53 +0200 Miquel Raynal wrote: > int ubi_part(char *part_name, const char *vid_header_offset) > { > + struct mtd_info *mtd; > int err = 0; > - char mtd_dev[16]; > - struct mtd_device *dev; > - struct part_info *part; > - u8 pnum; >

[U-Boot] [PATCH v7 11/12] cmd: ubi: clean the partition handling

2018-09-06 Thread Miquel Raynal
UBI should not mess with MTD partitions, now that the partitions are handled in a clean way, clean the ubi command and avoid using this uneeded extra-glue to reference the devices. Signed-off-by: Miquel Raynal Reviewed-by: Stefan Roese --- cmd/Kconfig | 2 ++ cmd/ubi.c | 100 +++