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>
Mon, 5 Apr 2021 07:54:10 +0000 (09:54 +0200)
commit7d5f7439428d2b4c6952af47b36acc010b846372
tree1777e9b91c5f5345190e4e05ae183f67d15cf790
parentfaea7becafc634dc882f0ad8f9388862ccd5bd0d
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>
tools/firmware-utils/src/bcm4908img.c