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)
commit98cf9965c09fc3fe6d8bd9760dba1dec53e387cc
treecd8a9fe982f37042cfe2d13363bfa0f74bdbd164
parentd00b74613fb18dfd0a5aa99270ee2e72d5c808d7
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