]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: info: Move card id proc creation into info.c
authorTakashi Iwai <tiwai@suse.de>
Tue, 5 Feb 2019 15:26:06 +0000 (16:26 +0100)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Feb 2019 17:11:58 +0000 (18:11 +0100)
commit47b43dd1fba8bc1d8d70f6b46f9bf3920ee192f9
treebf328cc3530de4277039d263546a07be20ce112c
parent1955f78c6e138200a41181b3938743ea28f0e2a8
ALSA: info: Move card id proc creation into info.c

The creation of card's id proc file can be moved gracefully into
info.c.  Also, the assignment of card->proc_id is superfluous and can
be dropped.  So let's do it.

Basically this is no functional change but code refactoring, but one
potential behavior change is that now it returns properly the error
code from snd_info_card_register(), which is a good thing (tm).

Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h
sound/core/info.c
sound/core/init.c