]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: use component driver name as component name
authorTzung-Bi Shih <tzungbi@google.com>
Wed, 29 May 2019 06:22:14 +0000 (14:22 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 29 May 2019 15:37:46 +0000 (16:37 +0100)
commit4d3c44e783f5659754926cbddf47bd8923f29820
tree1a645486685d0d0fb1f2a157ef86b4049a31a550
parent7cf1601b6d5379de0f5e65ead85a12362b040d45
ASoC: core: use component driver name as component name

fmt_single_name() uses device name to determine component name.  If
multiple components bind to the same device, the debugfs creation in
soc_init_component_debugfs() would fail due to duplicated entity
names.

Name provided by component driver is unique enough to represent each
component.  Use component driver name as the component name to avoid
name duplication.

Signed-off-by: Tzung-Bi Shih <tzungbi@google.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c