Skip to content

Commit afd2d22

Browse files
geertugregkh
authored andcommitted
ASoC: da7213: Convert to DEFINE_RUNTIME_DEV_PM_OPS()
[ 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 <[email protected]> Link: https://patch.msgid.link/0c001e0f7658c2d5f33faea963d6ca64f60ccea8.1756999876.git.geert+renesas@glider.be Signed-off-by: Mark Brown <[email protected]> Stable-dep-of: 249d96b492ef ("ASoC: da7213: Use component driver suspend/resume") Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f290de3 commit afd2d22

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

sound/soc/codecs/da7213.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2247,10 +2247,8 @@ static int da7213_runtime_resume(struct device *dev)
22472247
return regcache_sync(da7213->regmap);
22482248
}
22492249

2250-
static const struct dev_pm_ops da7213_pm = {
2251-
RUNTIME_PM_OPS(da7213_runtime_suspend, da7213_runtime_resume, NULL)
2252-
SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume)
2253-
};
2250+
static DEFINE_RUNTIME_DEV_PM_OPS(da7213_pm, da7213_runtime_suspend,
2251+
da7213_runtime_resume, NULL);
22542252

22552253
static const struct i2c_device_id da7213_i2c_id[] = {
22562254
{ "da7213" },

0 commit comments

Comments
 (0)