diff options
| author | Takashi Iwai <[email protected]> | 2019-02-04 15:01:39 +0000 |
|---|---|---|
| committer | Takashi Iwai <[email protected]> | 2019-02-06 17:11:56 +0000 |
| commit | 47f2769b4b2e267cba135fc19c89c32d202b1415 (patch) | |
| tree | 58078c2d663d901622b6015bbfde465e2dda7e8f /sound/pci/oxygen/oxygen_lib.c | |
| parent | ALSA: i2c: Clean up with new procfs helpers (diff) | |
| download | kernel-47f2769b4b2e267cba135fc19c89c32d202b1415.tar.gz kernel-47f2769b4b2e267cba135fc19c89c32d202b1415.zip | |
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'sound/pci/oxygen/oxygen_lib.c')
| -rw-r--r-- | sound/pci/oxygen/oxygen_lib.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sound/pci/oxygen/oxygen_lib.c b/sound/pci/oxygen/oxygen_lib.c index d4cfff7e49e1..3ae9dd4b39e8 100644 --- a/sound/pci/oxygen/oxygen_lib.c +++ b/sound/pci/oxygen/oxygen_lib.c @@ -244,10 +244,7 @@ static void oxygen_proc_read(struct snd_info_entry *entry, static void oxygen_proc_init(struct oxygen *chip) { - struct snd_info_entry *entry; - - if (!snd_card_proc_new(chip->card, "oxygen", &entry)) - snd_info_set_text_ops(entry, chip, oxygen_proc_read); + snd_card_ro_proc_new(chip->card, "oxygen", chip, oxygen_proc_read); } static const struct pci_device_id * |
