]> 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)
commit8252816b826d907263eb8cb11c6c9dcb6c9c0427
treebf328cc3530de4277039d263546a07be20ce112c
parent7f05989da92beec57182866cc9a27d79088a8e15
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