mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
e9dd86267f
commit
7f60541883
3 changed files with 6 additions and 13 deletions
|
|
@ -170,10 +170,9 @@ extern int snd_ad1816a_create(struct snd_card *card, unsigned long port,
|
|||
int irq, int dma1, int dma2,
|
||||
struct snd_ad1816a *chip);
|
||||
|
||||
extern int snd_ad1816a_pcm(struct snd_ad1816a *chip, int device, struct snd_pcm **rpcm);
|
||||
extern int snd_ad1816a_pcm(struct snd_ad1816a *chip, int device);
|
||||
extern int snd_ad1816a_mixer(struct snd_ad1816a *chip);
|
||||
extern int snd_ad1816a_timer(struct snd_ad1816a *chip, int device,
|
||||
struct snd_timer **rtimer);
|
||||
extern int snd_ad1816a_timer(struct snd_ad1816a *chip, int device);
|
||||
#ifdef CONFIG_PM
|
||||
extern void snd_ad1816a_suspend(struct snd_ad1816a *chip);
|
||||
extern void snd_ad1816a_resume(struct snd_ad1816a *chip);
|
||||
|
|
|
|||
Loading…
Reference in a new issue