From: Brian Norris Date: Wed, 31 Jul 2013 00:52:55 +0000 (-0700) Subject: mtd: nand: add accessors, macros for in-memory BBT X-Git-Tag: v3.12-rc1~82^2~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=771c568bcf915e708ae819ef9d07d862f7e2da86;p=pandora-kernel.git mtd: nand: add accessors, macros for in-memory BBT There is an abundance of magic numbers and complicated shifting/masking logic in the in-memory BBT code which makes the code unnecessary complex and hard to read. This patch adds macros to represent the 00b, 01b, 10b, and 11b memory-BBT magic numbers, as well as two accessor functions for reading and marking the memory-BBT bitfield for a given block. Signed-off-by: Brian Norris Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed