mtd: afs: factor footer parsing into the v1 part parsing
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 2 May 2019 14:30:32 +0000 (16:30 +0200)
committerRichard Weinberger <richard@nod.at>
Mon, 6 May 2019 19:48:46 +0000 (21:48 +0200)
commitff827b4e8d3606a275b92b159c7e9ae45ad2c361
treecf1aef2c80a45b65920c0e3869d2d1c92d0e9bf9
parent4aeb1594796d21f10866b7bd28365024fba347ff
mtd: afs: factor footer parsing into the v1 part parsing

This simplifies the code by factoring in the image footer
parsing into the single function parsing the AFSv1 partitions.

Cc: Ryan Harkin <ryan.harkin@linaro.org>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/parsers/afs.c