summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/nand_bch.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2012-09-24 20:40:51 -0700
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-09-29 15:57:42 +0100
commitf23a481c4e0ccb006470b1c890cc7236ba634e67 (patch)
treee5fd455deb2d1e6d7484ced398bec45f4f3b7468 /drivers/mtd/nand/nand_bch.c
parentfc09bbc04ccd7f069c1928a0156968b888393833 (diff)
downloadtalos-op-linux-f23a481c4e0ccb006470b1c890cc7236ba634e67.tar.gz
talos-op-linux-f23a481c4e0ccb006470b1c890cc7236ba634e67.zip
mtd: nand: split simple ID decode 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 simple ID decode functionality, where all the information regarding NAND size/blocksize/pagesize/oobsize/busw is encoded in the first two bytes of the ID string. 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>
Diffstat (limited to 'drivers/mtd/nand/nand_bch.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud