]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: pcm3168a: Convert to EXPORT_GPL_DEV_PM_OPS()
authorTakashi Iwai <tiwai@suse.de>
Mon, 17 Mar 2025 09:55:50 +0000 (10:55 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 17 Mar 2025 10:15:05 +0000 (10:15 +0000)
commit15559cdeb9be5a0fe528cdc3f8b759a27ea8f943
tree2f27cbbf04b91d3ec40d6885ca1cbd47e98ce011
parent5f86b16c49a9d156a459c7e9e3ebcbbe9439953c
ASoC: pcm3168a: 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: Shenghao Ding <shenghao-ding@ti.com>
Cc: Kevin Lu <kevin-lu@ti.com>
Cc: Baojun Xu <baojun.xu@ti.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250317095603.20073-89-tiwai@suse.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/pcm3168a-i2c.c
sound/soc/codecs/pcm3168a-spi.c
sound/soc/codecs/pcm3168a.c