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 kbuild: use Linux Kernel build scripts 2014-02-19 11:07:50 -05: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 Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
part_dos.c disk: part: refactor generic name creation for DOS and ISO 2016-10-01 20:04:56 -04:00
part_dos.h Coding Style cleanup: remove trailing white space 2013-10-14 16:06:53 -04:00
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 iso: Make little endian and 64bit safe 2016-04-18 17:11:33 -04:00
part_mac.c disk: part: implement generic function part_get_info_by_name() 2016-10-01 20:04:45 -04:00
part_mac.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
part.c disk: part: refactor generic name creation for DOS and ISO 2016-10-01 20:04:56 -04:00