Skip to content
Snippets Groups Projects
Commit da2ee24d authored by Petr Kulhavy's avatar Petr Kulhavy Committed by Tom Rini
Browse files

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: default avatarPetr Kulhavy <brain@jikos.cz>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
Acked-by: default avatarSteve Rae <steve.rae@raedomain.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent b6dd69a4
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment