Commit 50a7a8e9 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: pcmcia: Clean up with new procfs helpers

Simplify the proc fs creation code with new helper functions,
snd_card_ro_proc_new() and snd_card_rw_proc_new().
Just a code refactoring and no functional changes.
Reviewed-by: default avatarJaroslav Kysela <perex@perex.cz>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 47f2769b
...@@ -148,10 +148,7 @@ static void pdacf_proc_read(struct snd_info_entry * entry, ...@@ -148,10 +148,7 @@ static void pdacf_proc_read(struct snd_info_entry * entry,
static void pdacf_proc_init(struct snd_pdacf *chip) static void pdacf_proc_init(struct snd_pdacf *chip)
{ {
struct snd_info_entry *entry; snd_card_ro_proc_new(chip->card, "pdaudiocf", chip, pdacf_proc_read);
if (! snd_card_proc_new(chip->card, "pdaudiocf", &entry))
snd_info_set_text_ops(entry, chip, pdacf_proc_read);
} }
struct snd_pdacf *snd_pdacf_create(struct snd_card *card) struct snd_pdacf *snd_pdacf_create(struct snd_card *card)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment