]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Put WM8962 GPIO2/3 into GPIO mode when configuring platform data too
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 2 Oct 2010 00:46:37 +0000 (17:46 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sat, 2 Oct 2010 21:23:57 +0000 (14:23 -0700)
commitca913341c9415c80a2f88a9cd3d2adc0adfbcaef
treec30d7658b57106c84e8ef84223c4000b146b7c37
parentb6942285ac95040b48cffd0145215256f8f6eca6
ASoC: Put WM8962 GPIO2/3 into GPIO mode when configuring platform data too

GPIO2 and GPIO3 on the WM8962 are MFPs and need to be put into GPIO mode
before the GPIO block can be used to control them. We're already doing
this when used via gpiolib, factor out the code for use when setting static
configurations via platform data as well.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/codecs/wm8962.c