u-boot/disk
Petr Kulhavy da2ee24d91 disk: part: refactor generic name creation for DOS and ISO
In both DOS and ISO partition tables the same code to create partition name
like "hda1" was repeated.

Code moved to into a new function part_set_generic_name() in part.c and optimized.
Added recognition of MMC and SD types, name is like "mmcsda1".

Signed-off-by: Petr Kulhavy <brain@jikos.cz>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Steve Rae <steve.rae@raedomain.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2016-10-01 20:04:56 -04:00
..
Makefile
part.c disk: part: refactor generic name creation for DOS and ISO 2016-10-01 20:04:56 -04:00
part_amiga.c disk: part: implement generic function part_get_info_by_name() 2016-10-01 20:04:45 -04:00
part_amiga.h
part_dos.c disk: part: refactor generic name creation for DOS and ISO 2016-10-01 20:04:56 -04:00
part_dos.h
part_efi.c disk: part: implement generic function part_get_info_by_name() 2016-10-01 20:04:45 -04:00
part_iso.c disk: part: refactor generic name creation for DOS and ISO 2016-10-01 20:04:56 -04:00
part_iso.h
part_mac.c disk: part: implement generic function part_get_info_by_name() 2016-10-01 20:04:45 -04:00
part_mac.h