Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: da7213: Convert to DEFINE_RUNTIME_DEV_PM_OPS()

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>

authored by

Geert Uytterhoeven and committed by
Mark Brown
2aa28b74 9565c9d5

+2 -4
+2 -4
sound/soc/codecs/da7213.c
··· 2247 2247 return regcache_sync(da7213->regmap); 2248 2248 } 2249 2249 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); 2254 2252 2255 2253 static const struct i2c_device_id da7213_i2c_id[] = { 2256 2254 { "da7213" },