ALSA: drivers: 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:
@@ -643,10 +643,7 @@ static void vx_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *b
|
||||
|
||||
static void vx_proc_init(struct vx_core *chip)
|
||||
{
|
||||
struct snd_info_entry *entry;
|
||||
|
||||
if (! snd_card_proc_new(chip->card, "vx-status", &entry))
|
||||
snd_info_set_text_ops(entry, chip, vx_proc_read);
|
||||
snd_card_ro_proc_new(chip->card, "vx-status", chip, vx_proc_read);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user