summaryrefslogtreecommitdiff
path: root/Kconfig
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-09-22 12:46:44 +0900
committerBoris Brezillon <boris.brezillon@free-electrons.com>2017-09-22 09:04:31 +0200
commit8e4cbf7f0a55a235fdd8c088da1259b9fe8e9393 (patch)
tree48433555bfdd69bb04b875dbfe985bd8ce4f5c95 /Kconfig
parente0d53b3f8ed2b14dab54a04a4589fa72b0827fa5 (diff)
mtd: nand: denali: use more FIELD_PREP / FIELD_GET where appropriate
In several places in this driver, the register fields are retrieved as follows: val = reg & FOO_MASK; Then, modified as follows: reg &= ~FOO_MASK; reg |= val; This code relies on its shift is 0, which we will never know until we check the definition of FOO_MASK. Use FIELD_PREP / FIELD_GET where appropriate. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions