diff options
author | Takashi Iwai <tiwai@suse.de> | 2024-02-07 18:51:18 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-02-12 13:50:24 +0300 |
commit | fd1786bf7104b2520e5c1d115b1845c474257e73 (patch) | |
tree | de154039d78bd790ae022fae090aede0b5c289bc /include/sound | |
parent | b462d0b9e3a46e9309e836b2c371b67f722b1e66 (diff) | |
download | linux-fd1786bf7104b2520e5c1d115b1845c474257e73.tar.xz |
ALSA: ens137x: Replace with DEFINE_SIMPLE_DEV_PM_OPS()
Use the new DEFINE_SIMPLE_DEV_PM_OPS() instead of SIMPLE_DEV_PM_OPS()
for code-simplification. We need no longer CONFIG_PM_SLEEP ifdefs.
For building properly, add the dummy functions for
snd_ak4531_suspend/resume() functions, too.
Just a cleanup, no functional changes.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20240207155140.18238-8-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/ak4531_codec.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/ak4531_codec.h b/include/sound/ak4531_codec.h index 9a4429970d92..64402347d7a2 100644 --- a/include/sound/ak4531_codec.h +++ b/include/sound/ak4531_codec.h @@ -65,6 +65,9 @@ int snd_ak4531_mixer(struct snd_card *card, struct snd_ak4531 *_ak4531, #ifdef CONFIG_PM void snd_ak4531_suspend(struct snd_ak4531 *ak4531); void snd_ak4531_resume(struct snd_ak4531 *ak4531); +#else +static inline void snd_ak4531_suspend(struct snd_ak4531 *ak4531) {} +static inline void snd_ak4531_resume(struct snd_ak4531 *ak4531) {} #endif #endif /* __SOUND_AK4531_CODEC_H */ |