]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Move debugfs registration to the component level
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 19 Aug 2014 13:51:18 +0000 (15:51 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 19 Aug 2014 15:59:45 +0000 (10:59 -0500)
commit7139412c14e242692c3d6a15f1be8a6e6721f16c
treeeb779c384f13dfb84805675740287ba4809bf460
parentca09702717581356bb91e5bbfbb244eda384a004
ASoC: Move debugfs registration to the component level

The debugfs registration is mostly identical between platforms and CODECs. This
patches consolidates the two implementations at the component level.

Unfortunately there are still a couple of CODEC specific debugfs files that are
related to legacy ASoC IO that need to be registered. For this a new callback is
added to the component struct that will be initialized when a CODEC is
registered and will be used to register the CODEC specific files. Once there are
no drivers left using legacy IO this can be removed again.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
include/sound/soc.h
sound/soc/soc-core.c