]> git.baikalelectronics.ru Git - kernel.git/commit
Input: arizona-haptics - Use SoC component pin control functions
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Tue, 29 Nov 2016 15:44:42 +0000 (15:44 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 1 Dec 2016 20:19:13 +0000 (20:19 +0000)
commit13f7d4bcf4b58099d9ebff3397d42e59d17112bd
tree403e553dd337bc57f6b5cadd795415050fbceda7
parent82bd145ae730d6c7d7f2f1214b14e71c254d73d9
Input: arizona-haptics - 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>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/input/misc/arizona-haptics.c