mtd: nand: split extended ID decoding into its own function
authorBrian Norris <computersforpeace@gmail.com>
Tue, 25 Sep 2012 03:40:50 +0000 (20:40 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sat, 29 Sep 2012 14:57:38 +0000 (15:57 +0100)
commitfc09bbc04ccd7f069c1928a0156968b888393833
tree75d7b13a28849caf125cb7cdf82f291dff716907
parent7e74c2d7141e8929049233e28c74cd089f6ae962
mtd: nand: split extended ID 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 out the extended ID decode functionality, which handles
decoding the 3rd-8th ID bytes to determine NAND device parameters.

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
This page took 0.026635 seconds and 5 git commands to generate.