diff options
author | Brian Norris <computersforpeace@gmail.com> | 2013-07-30 17:52:55 -0700 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-30 16:42:48 +0100 |
commit | 771c568bcf915e708ae819ef9d07d862f7e2da86 (patch) | |
tree | 17c70b9a6e4c6c723661b03658ca4ed3106fa6d9 /tools/perf/scripts/python/event_analyzing_sample.py | |
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 <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 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions