Skip to content

Commit baa1424

Browse files
ADESTMvinodkoul
authored andcommitted
dmaengine: stm32-dma: rename pm ops before dma pause/resume introduction
dmaengine framework offers device_pause and device_resume ops to pause an on-going transfer and resume it later. To avoid any misunderstanding with system sleep pm ops, rename pm ops into stm32_dma_pm_suspend and stm32_dma_pm_resume. Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com> Link: https://lore.kernel.org/r/20220505115611.38845-4-amelie.delaunay@foss.st.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
1 parent ded6230 commit baa1424

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/dma/stm32-dma.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ static int stm32_dma_runtime_resume(struct device *dev)
14861486
#endif
14871487

14881488
#ifdef CONFIG_PM_SLEEP
1489-
static int stm32_dma_suspend(struct device *dev)
1489+
static int stm32_dma_pm_suspend(struct device *dev)
14901490
{
14911491
struct stm32_dma_device *dmadev = dev_get_drvdata(dev);
14921492
int id, ret, scr;
@@ -1510,14 +1510,14 @@ static int stm32_dma_suspend(struct device *dev)
15101510
return 0;
15111511
}
15121512

1513-
static int stm32_dma_resume(struct device *dev)
1513+
static int stm32_dma_pm_resume(struct device *dev)
15141514
{
15151515
return pm_runtime_force_resume(dev);
15161516
}
15171517
#endif
15181518

15191519
static const struct dev_pm_ops stm32_dma_pm_ops = {
1520-
SET_SYSTEM_SLEEP_PM_OPS(stm32_dma_suspend, stm32_dma_resume)
1520+
SET_SYSTEM_SLEEP_PM_OPS(stm32_dma_pm_suspend, stm32_dma_pm_resume)
15211521
SET_RUNTIME_PM_OPS(stm32_dma_runtime_suspend,
15221522
stm32_dma_runtime_resume, NULL)
15231523
};

0 commit comments

Comments
 (0)