diff options
| author | Brian Norris <[email protected]> | 2013-07-30 17:52:55 -0700 |
|---|---|---|
| committer | David Woodhouse <[email protected]> | 2013-08-30 16:42:48 +0100 |
| commit | 771c568bcf915e708ae819ef9d07d862f7e2da86 (patch) | |
| tree | 17c70b9a6e4c6c723661b03658ca4ed3106fa6d9 /scripts | |
| parent | e79265ba6bdb31437bd4c3e7911950f9d1262a07 (diff) | |
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 <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions