tools: mtk_image: split gfh header verification into a new function
authorWeijie Gao <weijie.gao@mediatek.com>
Fri, 9 Sep 2022 12:00:18 +0000 (20:00 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 23 Sep 2022 19:09:16 +0000 (15:09 -0400)
commit687e10ec49eb0231c9b2b59ee86bbefc0b86e6e1
treec4f51cfb4053b24199fe0eeab6c45fd1da392162
parent6136a232637fb141a38c0432b8786d19c8e8797f
tools: mtk_image: split gfh header verification into a new function

The verification code of gfh header for NAND and non-NAND are identical.
It's better to define a individual function to reduce redundancy.

Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
tools/mtk_image.c