ALSA: i2c: 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:
@@ -465,9 +465,8 @@ static void snd_ak4114_proc_regs_read(struct snd_info_entry *entry,
|
||||
|
||||
static void snd_ak4114_proc_init(struct ak4114 *ak4114)
|
||||
{
|
||||
struct snd_info_entry *entry;
|
||||
if (!snd_card_proc_new(ak4114->card, "ak4114", &entry))
|
||||
snd_info_set_text_ops(entry, ak4114, snd_ak4114_proc_regs_read);
|
||||
snd_card_ro_proc_new(ak4114->card, "ak4114", ak4114,
|
||||
snd_ak4114_proc_regs_read);
|
||||
}
|
||||
|
||||
int snd_ak4114_build(struct ak4114 *ak4114,
|
||||
|
Viittaa uudesa ongelmassa
Block a user