]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: da7213: Convert to DEFINE_RUNTIME_DEV_PM_OPS()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 21 Nov 2025 02:04:05 +0000 (21:04 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Nov 2025 09:37:51 +0000 (10:37 +0100)
[ Upstream commit 2aa28b748fc967a2f2566c06bdad155fba8af7d8 ]

Convert the Dialog DA7213 CODEC driver from an open-coded dev_pm_ops
structure to DEFINE_RUNTIME_DEV_PM_OPS(), to simplify the code.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://patch.msgid.link/0c001e0f7658c2d5f33faea963d6ca64f60ccea8.1756999876.git.geert+renesas@glider.be
Signed-off-by: Mark Brown <broonie@kernel.org>
Stable-dep-of: 249d96b492ef ("ASoC: da7213: Use component driver suspend/resume")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/codecs/da7213.c

index a4496cc26902b8e8d52d575fef665c1a75c3e37b..ae89260ca215ffbbf391c35fc52d468d2e29eb60 100644 (file)
@@ -2247,10 +2247,8 @@ static int da7213_runtime_resume(struct device *dev)
        return regcache_sync(da7213->regmap);
 }
 
-static const struct dev_pm_ops da7213_pm = {
-       RUNTIME_PM_OPS(da7213_runtime_suspend, da7213_runtime_resume, NULL)
-       SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
-};
+static DEFINE_RUNTIME_DEV_PM_OPS(da7213_pm, da7213_runtime_suspend,
+                                da7213_runtime_resume, NULL);
 
 static const struct i2c_device_id da7213_i2c_id[] = {
        { "da7213" },