summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorJarkko Nikula2014-05-26 13:34:36 +0200
committerMark Brown2014-05-26 16:23:14 +0200
commit50dfb69d1bb0062e2811547525c73e9a45a423e9 (patch)
treeff6bbcec55ce9a19cab917931288c91ecac21c03 /include/sound
parentLinux 3.15-rc1 (diff)
downloadkernel-qcow2-linux-50dfb69d1bb0062e2811547525c73e9a45a423e9.tar.gz
kernel-qcow2-linux-50dfb69d1bb0062e2811547525c73e9a45a423e9.tar.xz
kernel-qcow2-linux-50dfb69d1bb0062e2811547525c73e9a45a423e9.zip
ASoC: jack: Basic GPIO descriptor conversion
This patch does basic GPIO descriptor conversion to soc-jack. Even the GPIOs are still passed and requested using legacy GPIO numbers the driver internals are converted to use GPIO descriptor API. Motivation for this is to prepare soc-jack so that it will allow registering jack GPIO pins using both GPIO descriptors and legacy GPIO numbers. Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 0b83168d8ff4..c6bd40f2c40b 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -606,6 +606,7 @@ struct snd_soc_jack_gpio {
struct snd_soc_jack *jack;
struct delayed_work work;
+ struct gpio_desc *desc;
void *data;
int (*jack_status_check)(void *data);