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/gus/gus_irq.c | |
parent | 815d808c7bfc91edbf25813cea54709f4a805c71 (diff) | |
download | linux-1bac5e1c814220e1a199ceffb34b427930283d84.tar.bz2 |
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/gus/gus_irq.c')
-rw-r--r-- | sound/isa/gus/gus_irq.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/isa/gus/gus_irq.c b/sound/isa/gus/gus_irq.c index 2055aff71b50..0ca6c38e2ed9 100644 --- a/sound/isa/gus/gus_irq.c +++ b/sound/isa/gus/gus_irq.c @@ -140,10 +140,7 @@ static void snd_gus_irq_info_read(struct snd_info_entry *entry, void snd_gus_irq_profile_init(struct snd_gus_card *gus) { - struct snd_info_entry *entry; - - if (! snd_card_proc_new(gus->card, "gusirq", &entry)) - snd_info_set_text_ops(entry, gus, snd_gus_irq_info_read); + snd_card_ro_proc_new(gus->card, "gusirq", gus, snd_gus_irq_info_read); } #endif |