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)
commit29b2625ff605394ecd0b078e0cb67a151bb4d80c
treebf328cc3530de4277039d263546a07be20ce112c
parenta858ee6655ca2f0fc6e2e5d426446bd898c92272
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