]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: cs42l43: convert to SYSTEM_SLEEP_PM_OPS
authorArnd Bergmann <arnd@arndb.de>
Wed, 5 Mar 2025 17:27:32 +0000 (18:27 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 6 Mar 2025 13:27:00 +0000 (13:27 +0000)
commit2c2eadd07e747059ccd65e68cd1d1b23ca96b072
tree93973f9235a7d3884aac249cf49544381f444487
parent269b844239149a9bbaba66518db99ebb06554a15
ASoC: cs42l43: convert to SYSTEM_SLEEP_PM_OPS

The custom suspend function causes a build warning when CONFIG_PM_SLEEP
is disabled:

sound/soc/codecs/cs42l43.c:2405:12: error: unused function 'cs42l43_codec_runtime_force_suspend' [-Werror,-Wunused-function]

Change SET_SYSTEM_SLEEP_PM_OPS() to the newer SYSTEM_SLEEP_PM_OPS(),
to avoid this.

Fixes: 164b7dd4546b ("ASoC: cs42l43: Add jack delay debounce after suspend")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20250305172738.3437513-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs42l43.c