From 0c8ca14156b44996711ccffafdf1abce4c459b18 Mon Sep 17 00:00:00 2001 From: Xing Zheng Date: Wed, 14 Jun 2023 21:02:08 +0800 Subject: [PATCH] ASoC: rockchip: sai: keeping naming style of 'rockchip_' prefix for sai_suspend/resume Change-Id: I33a4d88acf8f12ea0f1440cf8ce4bd2a57ea466e Signed-off-by: Xing Zheng --- sound/soc/rockchip/rockchip_sai.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/soc/rockchip/rockchip_sai.c b/sound/soc/rockchip/rockchip_sai.c index 2bda4d2b5d8f..3e50ba0e12f0 100644 --- a/sound/soc/rockchip/rockchip_sai.c +++ b/sound/soc/rockchip/rockchip_sai.c @@ -70,7 +70,7 @@ static const struct sai_of_quirks { }, }; -static int sai_runtime_suspend(struct device *dev) +static int rockchip_sai_runtime_suspend(struct device *dev) { struct rk_sai_dev *sai = dev_get_drvdata(dev); unsigned int val; @@ -110,7 +110,7 @@ static int sai_runtime_suspend(struct device *dev) return 0; } -static int sai_runtime_resume(struct device *dev) +static int rockchip_sai_runtime_resume(struct device *dev) { struct rk_sai_dev *sai = dev_get_drvdata(dev); int ret; @@ -1388,7 +1388,7 @@ static int rockchip_sai_probe(struct platform_device *pdev) pm_runtime_enable(&pdev->dev); if (!pm_runtime_enabled(&pdev->dev)) { - ret = sai_runtime_resume(&pdev->dev); + ret = rockchip_sai_runtime_resume(&pdev->dev); if (ret) goto err_runtime_disable; } @@ -1416,7 +1416,7 @@ static int rockchip_sai_probe(struct platform_device *pdev) err_runtime_suspend: if (!pm_runtime_status_suspended(&pdev->dev)) - sai_runtime_suspend(&pdev->dev); + rockchip_sai_runtime_suspend(&pdev->dev); err_runtime_disable: pm_runtime_disable(&pdev->dev); @@ -1427,7 +1427,7 @@ static int rockchip_sai_remove(struct platform_device *pdev) { pm_runtime_disable(&pdev->dev); if (!pm_runtime_status_suspended(&pdev->dev)) - sai_runtime_suspend(&pdev->dev); + rockchip_sai_runtime_suspend(&pdev->dev); return 0; } @@ -1457,7 +1457,7 @@ static int rockchip_sai_resume(struct device *dev) #endif /* CONFIG_PM_SLEEP */ static const struct dev_pm_ops rockchip_sai_pm_ops = { - SET_RUNTIME_PM_OPS(sai_runtime_suspend, sai_runtime_resume, NULL) + SET_RUNTIME_PM_OPS(rockchip_sai_runtime_suspend, rockchip_sai_runtime_resume, NULL) SET_SYSTEM_SLEEP_PM_OPS(rockchip_sai_suspend, rockchip_sai_resume) };