fit: Refactor config node handling
This patch makes some minor refactoring to the way the FIT parser
handles config nodes. A lot of this code was written in the dawn age of
depthcharge when our device tree library wasn't as well-stocked yet, so
some of it can be rewritten nicer with more high-level primitives.
There's no point in storing both the string name and the actual FDT node
of a FIT image node separately, since the latter also contains the
former, so remove that. Also eliminate code for the case of not having
an FDT (which makes no sense), and move compat ranking into its own
function (the indentation depth got a little too gnarly there).
Signed-off-by: Julius Werner <email@example.com>
Reviewed-by: Hung-Te Lin <firstname.lastname@example.org>
2 files changed