diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2021-01-20 10:46:50 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-02-17 17:12:45 -0500 |
commit | 917fa369f6fbdc2011e500fbeea0e07ba70af9c3 (patch) | |
tree | dd2eee300e2fb0c6bb8ef237135cbea4f76cab21 /drivers/rng/meson-rng.c | |
parent | efc4ad0bc763f135f3437f51df693e83941a9928 (diff) | |
download | u-boot-917fa369f6fbdc2011e500fbeea0e07ba70af9c3.tar.gz u-boot-917fa369f6fbdc2011e500fbeea0e07ba70af9c3.tar.xz u-boot-917fa369f6fbdc2011e500fbeea0e07ba70af9c3.zip |
spl: fit: Factor out FIT parsing and use a context struct
The logical steps in spl_load_simple_fit() are difficult to follow.
I think the long comments, ifdefs, and ungodly number of variables
seriously affect the readability. In particular, it violates section 6
of the coding style, paragraphs (3), and (4).
The purpose of this patch is to improve the situation by
- Factoring out initialization and parsing to separate functions
- Reduce the number of variables by using a context structure
This change introduces no functional changes.
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/rng/meson-rng.c')
0 files changed, 0 insertions, 0 deletions