diff options
author | Takashi Iwai <tiwai@suse.de> | 2024-02-07 16:51:16 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-02-12 11:50:24 +0100 |
commit | 8cd4a3b221c4033422f875fdfe5d43f84cad65a5 (patch) | |
tree | 349b26c4c6e081b4ada9b9fc7171d954419a1a9d /include/sound/sb.h | |
parent | ALSA: als300: Replace with DEFINE_SIMPLE_DEV_PM_OPS() (diff) | |
download | linux-8cd4a3b221c4033422f875fdfe5d43f84cad65a5.tar.xz linux-8cd4a3b221c4033422f875fdfe5d43f84cad65a5.zip |
ALSA: als4000: 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_sbmixer_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-6-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/sb.h')
-rw-r--r-- | include/sound/sb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sound/sb.h b/include/sound/sb.h index f540339fb0c7..24970f36c38a 100644 --- a/include/sound/sb.h +++ b/include/sound/sb.h @@ -290,6 +290,9 @@ int snd_sbmixer_new(struct snd_sb *chip); #ifdef CONFIG_PM void snd_sbmixer_suspend(struct snd_sb *chip); void snd_sbmixer_resume(struct snd_sb *chip); +#else +static inline void snd_sbmixer_suspend(struct snd_sb *chip) {} +static inline void snd_sbmixer_resume(struct snd_sb *chip) {} #endif /* sb8_init.c */ |