commit | 93c56109e51af59343fad795ffcbd991c95acf1a | [log] [tgz] |
---|---|---|
author | Maxime Ripard <maxime.ripard@free-electrons.com> | Thu Oct 15 14:34:11 2015 +0200 |
committer | Tom Rini <trini@konsulko.com> | Thu Nov 12 13:17:29 2015 -0500 |
tree | 6981bf41101d7a4f098c097d024f85af3dceaa80 | |
parent | aae9674f8fa5da9fbd1b7bdf45fc218d1b3ab237 [diff] |
sparse: Refactor chunk parsing function The chunk parsing code was duplicating a lot of code among the various chunk types, while all of them could be covered by generic and simple functions. Refactor the current code to reuse as much code as possible and hopefully make the chunk parsing loop more readable and concise. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Tom Rini <trini@konsulko.com>