aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-01-02 06:24:36 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-02 10:26:20 -0500
commit7f605418837add961466dc66f7370332d44c1a92 (patch)
treef12dd6b0429e92d38c477b151ca47867379665e1 /include
parente9dd86267f2571a9649399c9e268266ca5aa6152 (diff)
ALSA: ad1816a: Remove always NULL parameters
snd_ad1816a_pcm() and snd_ad1816a_timer() take a pointer to a pointer of a PCM/timer where if this parameter is provided the newly allocated object is stored. All callers pass NULL though, so remove the parameter. This makes the code a bit cleaner and shorter. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/sound/ad1816a.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/sound/ad1816a.h b/include/sound/ad1816a.h
index abdf609c5918..f2d3a6d07210 100644
--- a/include/sound/ad1816a.h
+++ b/include/sound/ad1816a.h
@@ -170,10 +170,9 @@ extern int snd_ad1816a_create(struct snd_card *card, unsigned long port,
170 int irq, int dma1, int dma2, 170 int irq, int dma1, int dma2,
171 struct snd_ad1816a *chip); 171 struct snd_ad1816a *chip);
172 172
173extern int snd_ad1816a_pcm(struct snd_ad1816a *chip, int device, struct snd_pcm **rpcm); 173extern int snd_ad1816a_pcm(struct snd_ad1816a *chip, int device);
174extern int snd_ad1816a_mixer(struct snd_ad1816a *chip); 174extern int snd_ad1816a_mixer(struct snd_ad1816a *chip);
175extern int snd_ad1816a_timer(struct snd_ad1816a *chip, int device, 175extern int snd_ad1816a_timer(struct snd_ad1816a *chip, int device);
176 struct snd_timer **rtimer);
177#ifdef CONFIG_PM 176#ifdef CONFIG_PM
178extern void snd_ad1816a_suspend(struct snd_ad1816a *chip); 177extern void snd_ad1816a_suspend(struct snd_ad1816a *chip);
179extern void snd_ad1816a_resume(struct snd_ad1816a *chip); 178extern void snd_ad1816a_resume(struct snd_ad1816a *chip);