]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: img: Convert to RUNTIME_PM_OPS() and co
authorTakashi Iwai <tiwai@suse.de>
Mon, 17 Mar 2025 09:55:22 +0000 (10:55 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 17 Mar 2025 10:14:40 +0000 (10:14 +0000)
commit5580e82d222668dd0a484af5612f1d9ae938f075
treeb845f6eb2d3b81159574c0bea12df6b5be95a301
parentd1baa8193fd8cb8d0088851b468c9b0c5874ff42
ASoC: img: Convert to RUNTIME_PM_OPS() and 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 superfluous CONFIG_PM_SLEEP
ifdefs.

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-61-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/img/img-i2s-in.c
sound/soc/img/img-i2s-out.c
sound/soc/img/img-parallel-out.c
sound/soc/img/img-spdif-in.c
sound/soc/img/img-spdif-out.c
sound/soc/img/pistachio-internal-dac.c