diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-02-04 16:00:13 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-02-06 18:11:55 +0100 |
commit | 1bac5e1c814220e1a199ceffb34b427930283d84 (patch) | |
tree | f076026fd48b92fe5c15eaab4d75bda15dc89fa5 /sound/isa/opti9xx/miro.c | |
parent | ALSA: drivers: Clean up with new procfs helpers (diff) | |
download | linux-1bac5e1c814220e1a199ceffb34b427930283d84.tar.xz linux-1bac5e1c814220e1a199ceffb34b427930283d84.zip |
ALSA: isa: 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/isa/opti9xx/miro.c')
-rw-r--r-- | sound/isa/opti9xx/miro.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/isa/opti9xx/miro.c b/sound/isa/opti9xx/miro.c index c6136c6b0214..997cdfd7b1ea 100644 --- a/sound/isa/opti9xx/miro.c +++ b/sound/isa/opti9xx/miro.c @@ -997,10 +997,7 @@ static void snd_miro_proc_read(struct snd_info_entry * entry, static void snd_miro_proc_init(struct snd_card *card, struct snd_miro *miro) { - struct snd_info_entry *entry; - - if (!snd_card_proc_new(card, "miro", &entry)) - snd_info_set_text_ops(entry, miro, snd_miro_proc_read); + snd_card_ro_proc_new(card, "miro", miro, snd_miro_proc_read); } /* |