Skip to content

Commit 91617bf

Browse files
ambarusvinodkoul
authored andcommitted
dmaengine: at_hdmac: s/atc_get_bytes_left/atc_get_residue
Use dmaengine terminology and rename the method to better indicate what it does: it gets the residue value which will be later on set with dma_set_residue(). Signed-off-by: Tudor Ambarus <[email protected]> Acked-by: Nicolas Ferre <[email protected]> Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent f5d79af commit 91617bf

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

drivers/dma/at_hdmac.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -308,15 +308,15 @@ static inline u32 atc_calc_bytes_left(u32 current_len, u32 ctrla)
308308
}
309309

310310
/**
311-
* atc_get_bytes_left - get the number of bytes residue for a cookie.
311+
* atc_get_residue - get the number of bytes residue for a cookie.
312312
* The residue is passed by address and updated on success.
313313
* @chan: DMA channel
314314
* @cookie: transaction identifier to check status of
315315
* @residue: residue to be updated.
316316
* Return 0 on success, -errono otherwise.
317317
*/
318-
static int atc_get_bytes_left(struct dma_chan *chan, dma_cookie_t cookie,
319-
u32 *residue)
318+
static int atc_get_residue(struct dma_chan *chan, dma_cookie_t cookie,
319+
u32 *residue)
320320
{
321321
struct at_dma_chan *atchan = to_at_dma_chan(chan);
322322
struct at_desc *desc_first = atc_first_active(atchan);
@@ -1471,10 +1471,7 @@ atc_tx_status(struct dma_chan *chan,
14711471
return dma_status;
14721472

14731473
spin_lock_irqsave(&atchan->lock, flags);
1474-
1475-
/* Get number of bytes left in the active transactions */
1476-
ret = atc_get_bytes_left(chan, cookie, &residue);
1477-
1474+
ret = atc_get_residue(chan, cookie, &residue);
14781475
spin_unlock_irqrestore(&atchan->lock, flags);
14791476

14801477
if (unlikely(ret < 0)) {

0 commit comments

Comments
 (0)