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)
commit8ca2aa9c59c39805c746b137c041576838f3de92
treec30d7658b57106c84e8ef84223c4000b146b7c37
parent7711308ae68900a047782f5fe1bd46196ea8be0e
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