mtd: nand: denali: use flag instead of register macro for direction
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 13 Jun 2017 13:45:44 +0000 (22:45 +0900)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 20 Jun 2017 07:14:44 +0000 (09:14 +0200)
commit96a376bd93bb76945fce61e2e17ddc7f152b31c6
tree32a0802ce626d8c8db058e33b60be35e1851651a
parent00fc615fd671877cd6e52b556a9d097223b6804e
mtd: nand: denali: use flag instead of register macro for direction

It is not a good idea to re-use macros that represent a specific
register bit field for the transfer direction.

It is true that bit 8 indicates the direction for the MAP10 pipeline
operation and the data DMA operation, but this is not valid across
the IP.

Use a simple flag (write: 1, read: 0) for the direction.

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