soc: ti: knav_dma: Use proper enum in pktdma_init_chan
authorNathan Chancellor <natechancellor@gmail.com>
Wed, 30 Jan 2019 18:21:44 +0000 (10:21 -0800)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 30 Jan 2019 18:22:17 +0000 (10:22 -0800)
commit2b13ef1f4261688c2dc5d67dbee69ed2fdddf53e
tree124c97c6b1948fec8148c8a04fa4291cd0a60ebb
parent5953c887fb5fd8de8b3b716485a0457b93ba4ce2
soc: ti: knav_dma: Use proper enum in pktdma_init_chan

Clang warns when one enumerated type is implicitly converted to another:

drivers/soc/ti/knav_dma.c:601:20: warning: implicit conversion from
enumeration type 'enum dma_data_direction' to different enumeration type
'enum dma_transfer_direction' [-Wenum-conversion]
        chan->direction = DMA_NONE;
                        ~ ^~~~~~~~
1 warning generated.

While DMA_NONE and DMA_TRANS_NONE have different values, there is no
functional change because direction is never checked against DMA_NONE,
only against DMA_MEM_TO_DEV and DMA_DEV_TO_MEM.

Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
drivers/soc/ti/knav_dma.c