diff options
author | Michal Simek <michal.simek@xilinx.com> | 2021-06-23 13:07:38 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-06-24 13:10:04 +0200 |
commit | 72cce7dd9f0aa88f82a5612e7d4f9993c34d0d17 (patch) | |
tree | c17c76f66106ed94884d92cebd1e24f7b990c29e /drivers/dma/xilinx | |
parent | dmaengine: xilinx: dpdma: Use kernel type u32 over uint32_t (diff) | |
download | linux-72cce7dd9f0aa88f82a5612e7d4f9993c34d0d17.tar.xz linux-72cce7dd9f0aa88f82a5612e7d4f9993c34d0d17.zip |
dmaengine: xilinx: dpdma: Fix spacing around addr[i-1]
Use proper spacing for array calculation. Issue is reported by
checkpatch.pl --strict.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://lore.kernel.org/r/ef7cde6f793bfa6f3dd0a8898bad13b6407479b0.1624446456.git.michal.simek@xilinx.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/xilinx')
-rw-r--r-- | drivers/dma/xilinx/xilinx_dpdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/xilinx/xilinx_dpdma.c b/drivers/dma/xilinx/xilinx_dpdma.c index f37324be1017..e75aad72c655 100644 --- a/drivers/dma/xilinx/xilinx_dpdma.c +++ b/drivers/dma/xilinx/xilinx_dpdma.c @@ -530,7 +530,7 @@ static void xilinx_dpdma_sw_desc_set_dma_addrs(struct xilinx_dpdma_device *xdev, for (i = 1; i < num_src_addr; i++) { u32 *addr = &hw_desc->src_addr2; - addr[i-1] = lower_32_bits(dma_addr[i]); + addr[i - 1] = lower_32_bits(dma_addr[i]); if (xdev->ext_addr) { u32 *addr_ext = &hw_desc->addr_ext_23; |