mtd: nand: denali: use upper/lower_32_bits() macro for clean-up
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 22 Sep 2017 03:46:46 +0000 (12:46 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 22 Sep 2017 07:04:34 +0000 (09:04 +0200)
commit5f2baae00542b2203e6d0fa77890f64ff741aaf3
tree6649b4f299ca0736a727614df79a81546453dd67
parent8582a03e028f666d15acc651e0491c02941d13e7
mtd: nand: denali: use upper/lower_32_bits() macro for clean-up

I used (uint64_t) cast to avoid "right shift count >= width of type"
warning.  <linux/kernel.h> provides nice helpers to cater to it.
The code will be cleaner, and easier to understand.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/denali.c