ASoC: cs42xx8: Convert to EXPORT_GPL_DEV_PM_OPS()
authorTakashi Iwai <tiwai@suse.de>
Mon, 17 Mar 2025 09:54:34 +0000 (10:54 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 17 Mar 2025 10:13:57 +0000 (10:13 +0000)
commit7b7e2292e0ba84515e62147a47b79e1f81f47b1c
tree6ec105e3d5838d1b7934a01a588830f18a6f1d0f
parent850910df7a5ce514f4b4d4d7ba4020abf9254b6d
ASoC: cs42xx8: Convert to EXPORT_GPL_DEV_PM_OPS()

Use the newer EXPORT_GPL_DEV_PM_OPS() macro together with pm_ptr(),
which allows us to drop superfluous CONFIG_PM ifdefs.

This optimizes slightly when CONFIG_PM is disabled, too.

Cc: patches@opensource.cirrus.com
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250317095603.20073-13-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42xx8-i2c.c
sound/soc/codecs/cs42xx8.c