]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mtd: bcm47xxpart: move TRX parsing code to separated function
authorRafał Miłecki <rafal@milecki.pl>
Tue, 10 Jan 2017 22:15:24 +0000 (23:15 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Fri, 10 Feb 2017 02:59:41 +0000 (18:59 -0800)
commitb522d7b0ebe3539340c2a6d46d787ae3d33bcb92
tree687a12908c5b8f4ecaea0906b00de944fa5b3c03
parentccc38234fdc70120be79e7fb2df5c27ca5cd4c8a
mtd: bcm47xxpart: move TRX parsing code to separated function

This change simplifies main parsing loop logic a bit. In future it may
be useful for moving TRX support to separated module / parser (if we
implement support for them at some point).
Finally parsing TRX at the end puts us in a better position as we have
better flash layout knowledge. It may be useful e.g. if it appears there
is more than 1 TRX partition.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/bcm47xxpart.c