]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: arizona-micsupp: Use SoC component pin control functions
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Thu, 15 Dec 2016 14:43:49 +0000 (14:43 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 15 Dec 2016 16:38:04 +0000 (16:38 +0000)
commit87c3c65e9cd29c2fca92d877a0fcadc71e515b3c
treecd8a9fe982f37042cfe2d13363bfa0f74bdbd164
parent7aebc0e01f37a9a002c9e3c4551b901dc9d6d854
regulator: arizona-micsupp: Use SoC component pin control functions

The name of a codec pin can have an optional prefix string, which is
defined by the SoC machine driver. The snd_soc_dapm_x_pin functions
take the fully-specified name including the prefix and so the existing
code would fail to find the pin if the audio machine driver had added
a prefix.

Switch to using the snd_soc_component_x_pin equivalent functions that
take a specified SoC component and automatically add the name prefix to
the provided pin name.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/arizona-micsupp.c