]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ethernet: ti: davinci_cpdma: use dma_addr_t for desc_mem_phys and desc_hw_addr
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 26 Apr 2019 17:12:38 +0000 (20:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Apr 2019 21:11:49 +0000 (17:11 -0400)
Use dma_addr_t for desc_mem_phys and desc_hw_addr to avoid types
conversions.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_cpdma.h

index 7d38210f32677d3d56c471111590f0177da09b8f..10376062dafafb74912b6ba2f720c5021b167a1f 100644 (file)
@@ -27,8 +27,8 @@ struct cpdma_params {
        int                     num_chan;
        bool                    has_soft_reset;
        int                     min_packet_size;
-       u32                     desc_mem_phys;
-       u32                     desc_hw_addr;
+       dma_addr_t              desc_mem_phys;
+       dma_addr_t              desc_hw_addr;
        int                     desc_mem_size;
        int                     desc_align;
        u32                     bus_freq_mhz;