firmware-utils: bcm4908img: extract parsing code
authorRafał Miłecki <rafal@milecki.pl>
Fri, 2 Apr 2021 11:02:51 +0000 (13:02 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 8 Apr 2021 11:16:11 +0000 (13:16 +0200)
commit9db0cc5787b2eec6adeb54ae8ecf17eb2a688922
treeaeae68f31ca97621cfc1d33bc54cf4a99b893e23
parent052708ce78dbd91c8d08d1d67aa7e74d12259b9c
firmware-utils: bcm4908img: extract parsing code

Move code parsing existing firmware file to separated function. This
cleans up existing code and allows reusing parsing code for other
commands.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 7d5f7439428d2b4c6952af47b36acc010b846372)
tools/firmware-utils/src/bcm4908img.c