diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-09-22 12:46:44 +0900 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-09-22 09:04:31 +0200 |
commit | 8e4cbf7f0a55a235fdd8c088da1259b9fe8e9393 (patch) | |
tree | 48433555bfdd69bb04b875dbfe985bd8ce4f5c95 /Kconfig | |
parent | e0d53b3f8ed2b14dab54a04a4589fa72b0827fa5 (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