summaryrefslogtreecommitdiffstats
path: root/sound/drivers/vx
diff options
context:
space:
mode:
authorTakashi Iwai2019-02-04 15:58:33 +0100
committerTakashi Iwai2019-02-06 18:11:55 +0100
commit815d808c7bfc91edbf25813cea54709f4a805c71 (patch)
treefe61cfdfe16a1454879a047e8deed249cb90d802 /sound/drivers/vx
parentALSA: info: Add standard helpers for card proc file entries (diff)
downloadkernel-qcow2-linux-815d808c7bfc91edbf25813cea54709f4a805c71.tar.gz
kernel-qcow2-linux-815d808c7bfc91edbf25813cea54709f4a805c71.tar.xz
kernel-qcow2-linux-815d808c7bfc91edbf25813cea54709f4a805c71.zip
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>
Diffstat (limited to 'sound/drivers/vx')
-rw-r--r--sound/drivers/vx/vx_core.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/drivers/vx/vx_core.c b/sound/drivers/vx/vx_core.c
index 19496fa486aa..543945643a76 100644
--- a/sound/drivers/vx/vx_core.c
+++ b/sound/drivers/vx/vx_core.c
@@ -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);
}