diff options
| author | Masahiro Yamada <[email protected]> | 2017-09-22 12:46:43 +0900 |
|---|---|---|
| committer | Boris Brezillon <[email protected]> | 2017-09-22 09:04:25 +0200 |
| commit | e0d53b3f8ed2b14dab54a04a4589fa72b0827fa5 (patch) | |
| tree | 9c0bcc950bac885b08c6e135a8b28980f0c224f2 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
| parent | fdd4d0836bdb0dd6a4e7e588d7dce2de37f8531d (diff) | |
mtd: nand: denali: clean up macros with <linux/bitfield.h>
All the register offsets and bitfield masks are defined in denali.h,
but the driver code ended up with additional crappy macros such as
MAKE_ECC_CORRECTION(), ECC_SECTOR(), etc.
The reason is apparent - accessing a register field requires mask and
shift pair. The denali.h only provides mask. However, defining both
is tedious.
<linux/bitfield.h> provides a convenient way to get register fields
only with a single shifted mask. Now use it.
While I am here, I shortened some macros.
Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions