File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -308,15 +308,15 @@ static inline u32 atc_calc_bytes_left(u32 current_len, u32 ctrla)
308
308
}
309
309
310
310
/**
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.
312
312
* The residue is passed by address and updated on success.
313
313
* @chan: DMA channel
314
314
* @cookie: transaction identifier to check status of
315
315
* @residue: residue to be updated.
316
316
* Return 0 on success, -errono otherwise.
317
317
*/
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 )
320
320
{
321
321
struct at_dma_chan * atchan = to_at_dma_chan (chan );
322
322
struct at_desc * desc_first = atc_first_active (atchan );
@@ -1471,10 +1471,7 @@ atc_tx_status(struct dma_chan *chan,
1471
1471
return dma_status ;
1472
1472
1473
1473
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 );
1478
1475
spin_unlock_irqrestore (& atchan -> lock , flags );
1479
1476
1480
1477
if (unlikely (ret < 0 )) {
You can’t perform that action at this time.
0 commit comments