]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: amd: Convert to RUNTIME_PM_OPS() & co
authorTakashi Iwai <tiwai@suse.de>
Mon, 17 Mar 2025 09:55:49 +0000 (10:55 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 17 Mar 2025 10:15:04 +0000 (10:15 +0000)
commit5f86b16c49a9d156a459c7e9e3ebcbbe9439953c
tree30993b9b08bac5f4833b1031789eb9f3ccb1cedf
parentc7ef05c0061acf505523133986adc47086265d99
ASoC: amd: Convert to RUNTIME_PM_OPS() & co

Use the newer RUNTIME_PM_OPS() and SYSTEM_SLEEP_PM_OPS() macros
instead of SET_RUNTIME_PM_OPS() and SET_SYSTEM_SLEEP_PM_OPS() together
with pm_ptr(), which allows us dropping ugly __maybe_unused
attributes.

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-88-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
12 files changed:
sound/soc/amd/acp/acp-pci.c
sound/soc/amd/acp/acp-rembrandt.c
sound/soc/amd/acp/acp-renoir.c
sound/soc/amd/acp/acp63.c
sound/soc/amd/acp/acp70.c
sound/soc/amd/ps/pci-ps.c
sound/soc/amd/ps/ps-pdm-dma.c
sound/soc/amd/ps/ps-sdw-dma.c
sound/soc/amd/rpl/rpl-pci-acp6x.c
sound/soc/amd/vangogh/acp5x-pcm-dma.c
sound/soc/amd/yc/acp6x-pdm-dma.c
sound/soc/amd/yc/pci-acp6x.c