Skip to content

Commit 2b59332

Browse files
charleskeepaxbroonie
authored andcommitted
ASoC: cs42l43: Use new-style PM runtime macros
Update to the newer style PM runtime macros, no functional change. Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com Link: https://lore.kernel.org/r/20230824103902.1606288-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org
1 parent a740484 commit 2b59332

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sound/soc/codecs/cs42l43.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2238,7 +2238,7 @@ static int cs42l43_codec_remove(struct platform_device *pdev)
22382238
return 0;
22392239
}
22402240

2241-
static int __maybe_unused cs42l43_codec_runtime_resume(struct device *dev)
2241+
static int cs42l43_codec_runtime_resume(struct device *dev)
22422242
{
22432243
struct cs42l43_codec *priv = dev_get_drvdata(dev);
22442244

@@ -2250,9 +2250,8 @@ static int __maybe_unused cs42l43_codec_runtime_resume(struct device *dev)
22502250
return 0;
22512251
}
22522252

2253-
static const struct dev_pm_ops cs42l43_codec_pm_ops = {
2254-
SET_RUNTIME_PM_OPS(NULL, cs42l43_codec_runtime_resume, NULL)
2255-
};
2253+
DEFINE_RUNTIME_DEV_PM_OPS(cs42l43_codec_pm_ops, NULL,
2254+
cs42l43_codec_runtime_resume, NULL);
22562255

22572256
static const struct platform_device_id cs42l43_codec_id_table[] = {
22582257
{ "cs42l43-codec", },

0 commit comments

Comments
 (0)