aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-01-02 06:24:42 -0500
committerTakashi Iwai <tiwai@suse.de>2015-01-02 10:28:35 -0500
commit92533f188862fbefe357ada4e4af67b8e730e680 (patch)
tree1c5196dd29ae73119c18d99a8e5d1870e3c24bcf /include/sound
parent8c77629996cbabee1d5b6d9b0d1e97cbca197ba1 (diff)
ASoC: sb16: Simplify snd_sb16dsp_pcm()
All callers of snd_sb16dsp_pcm() always pass the pcm field of the first parameter as the last parameter. Simplify the function by moving this inside the function itself. This makes the code a bit shorter and cleaner. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/sb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/sb.h b/include/sound/sb.h
index 13438ff3e5a4..33e2d11deedb 100644
--- a/include/sound/sb.h
+++ b/include/sound/sb.h
@@ -320,7 +320,7 @@ irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb *chip);
320int snd_sb8dsp_midi(struct snd_sb *chip, int device); 320int snd_sb8dsp_midi(struct snd_sb *chip, int device);
321 321
322/* sb16_init.c */ 322/* sb16_init.c */
323int snd_sb16dsp_pcm(struct snd_sb *chip, int device, struct snd_pcm ** rpcm); 323int snd_sb16dsp_pcm(struct snd_sb *chip, int device);
324const struct snd_pcm_ops *snd_sb16dsp_get_pcm_ops(int direction); 324const struct snd_pcm_ops *snd_sb16dsp_get_pcm_ops(int direction);
325int snd_sb16dsp_configure(struct snd_sb *chip); 325int snd_sb16dsp_configure(struct snd_sb *chip);
326/* sb16.c */ 326/* sb16.c */