Use an enum so it is clearer that these options are related. Update genimg_get_format(), tidy up the function comment and move it to the header file, since it is exported.
Signed-off-by: Simon Glass <[email protected]> --- Changes in v3: - Add new patch to convert IMAGE_FORMAT into an enum boot/image-board.c | 18 +++--------------- include/image.h | 26 +++++++++++++++++++++----- 2 files changed, 24 insertions(+), 20 deletions(-) Applied to sjg/master, thanks!

