ALSA: pci: 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>
This commit is contained in:
@@ -2090,10 +2090,8 @@ static void snd_korg1212_proc_read(struct snd_info_entry *entry,
|
||||
|
||||
static void snd_korg1212_proc_init(struct snd_korg1212 *korg1212)
|
||||
{
|
||||
struct snd_info_entry *entry;
|
||||
|
||||
if (! snd_card_proc_new(korg1212->card, "korg1212", &entry))
|
||||
snd_info_set_text_ops(entry, korg1212, snd_korg1212_proc_read);
|
||||
snd_card_ro_proc_new(korg1212->card, "korg1212", korg1212,
|
||||
snd_korg1212_proc_read);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Reference in New Issue
Block a user