mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 03:27:03 +02:00
ASoC: mediatek: mt8192: Convert to RUNTIME_PM_OPS()
Use the newer RUNTIME_PM_OPS() macro instead of SET_RUNTIME_PM_OPS() together with pm_ptr(). This optimizes slightly when CONFIG_PM is disabled, too. Signed-off-by: Takashi Iwai <tiwai@suse.de> Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://patch.msgid.link/20250317095603.20073-71-tiwai@suse.de Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
49a70f2ed0
commit
ecd140a206
|
|
@ -2313,15 +2313,15 @@ static const struct of_device_id mt8192_afe_pcm_dt_match[] = {
|
|||
MODULE_DEVICE_TABLE(of, mt8192_afe_pcm_dt_match);
|
||||
|
||||
static const struct dev_pm_ops mt8192_afe_pm_ops = {
|
||||
SET_RUNTIME_PM_OPS(mt8192_afe_runtime_suspend,
|
||||
mt8192_afe_runtime_resume, NULL)
|
||||
RUNTIME_PM_OPS(mt8192_afe_runtime_suspend,
|
||||
mt8192_afe_runtime_resume, NULL)
|
||||
};
|
||||
|
||||
static struct platform_driver mt8192_afe_pcm_driver = {
|
||||
.driver = {
|
||||
.name = "mt8192-audio",
|
||||
.of_match_table = mt8192_afe_pcm_dt_match,
|
||||
.pm = &mt8192_afe_pm_ops,
|
||||
.pm = pm_ptr(&mt8192_afe_pm_ops),
|
||||
},
|
||||
.probe = mt8192_afe_pcm_dev_probe,
|
||||
.remove = mt8192_afe_pcm_dev_remove,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user