diff options
author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-02-20 14:10:07 +0100 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2017-03-16 10:26:23 +0100 |
commit | 1932a9646b777c448aec9d992995b0bb0648b11d (patch) | |
tree | 9919aa4866a4d4d718bae6bb616bbebd036c2a8b /drivers/memory | |
parent | 215157fb5338129b4b9f2dca23826084e71bcf4d (diff) | |
download | linux-1932a9646b777c448aec9d992995b0bb0648b11d.tar.gz |
mtd: nand: tango: Enforce DMA direction type
do_dma() uses an int to pass the DMA data direction information and
pass the same value to dmaengine_prep_slave_sg().
Currently, DMA_{FROM,TO}_DEVICE match DMA_{DEV_TO_MEM,MEM_TO_DEV}
definitions so it works fine, but assuming this will always be the case
is not safe.
Enforce enum dma_data_direction type in the function prototype and make
the enum dma_data_direction -> enum dma_transfer_direction conversion
explicit.
Reported-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Diffstat (limited to 'drivers/memory')
0 files changed, 0 insertions, 0 deletions