diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-02-04 16:06:27 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-02-06 18:11:57 +0100 |
commit | 50a7a8e916edd7d5e3ce9a96c3bd1216cef93a58 (patch) | |
tree | f0db4ec9471682a694ad359cae4fbbf9b3c4b16b /sound/pcmcia | |
parent | 47f2769b4b2e267cba135fc19c89c32d202b1415 (diff) | |
download | lwn-50a7a8e916edd7d5e3ce9a96c3bd1216cef93a58.tar.gz lwn-50a7a8e916edd7d5e3ce9a96c3bd1216cef93a58.zip |
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: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pcmcia')
-rw-r--r-- | sound/pcmcia/pdaudiocf/pdaudiocf_core.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/pcmcia/pdaudiocf/pdaudiocf_core.c b/sound/pcmcia/pdaudiocf/pdaudiocf_core.c index eabf29252895..910478275fd9 100644 --- a/sound/pcmcia/pdaudiocf/pdaudiocf_core.c +++ b/sound/pcmcia/pdaudiocf/pdaudiocf_core.c @@ -148,10 +148,7 @@ static void pdacf_proc_read(struct snd_info_entry * entry, static void pdacf_proc_init(struct snd_pdacf *chip) { - struct snd_info_entry *entry; - - if (! snd_card_proc_new(chip->card, "pdaudiocf", &entry)) - snd_info_set_text_ops(entry, chip, pdacf_proc_read); + snd_card_ro_proc_new(chip->card, "pdaudiocf", chip, pdacf_proc_read); } struct snd_pdacf *snd_pdacf_create(struct snd_card *card) |