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)
commitbaabfc21a271bda45423ab01d476b2af5fa34936
treef179420ce80d45531491ab09096d6d1c0bb9ab78
parent4263cf6a940d9124cc4f60f71b37ae92b0329522
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>
src/bcm4908img.c