mtd: nand: split BB marker options decoding into its own function
authorBrian Norris <computersforpeace@gmail.com>
Tue, 25 Sep 2012 03:40:49 +0000 (20:40 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 14:57:33 +0000 (15:57 +0100)
commit7e74c2d7141e8929049233e28c74cd089f6ae962
treed811df16199367e4ebba1d6a6135cc9783e87c1e
parent4aef9b78de057349ad9d620851b14800af0b962c
mtd: nand: split BB marker options decoding into its own function

When detecting NAND parameters, the code gets a little ugly so that the
logic is obscured. Try to remedy that by moving code to separate functions
that have well-defined purposes.

This patch splits the bad block marker options detection into its own function,
away from the other parameters (e.g., chip size, page size, etc.).

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c