summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/sn95031.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2015-03-04 10:33:16 +0100
committerMark Brown <broonie@kernel.org>2015-03-04 17:09:51 +0000
commitc472b93990e02c31f02322ddf0fdd9d571169310 (patch)
tree18fb840cb3f42e5be3d5a638c5d4d9674a252f53 /sound/soc/codecs/sn95031.h
parentc517d838eb7d07bbe9507871fab3931deccff539 (diff)
downloadop-kernel-dev-c472b93990e02c31f02322ddf0fdd9d571169310.zip
op-kernel-dev-c472b93990e02c31f02322ddf0fdd9d571169310.tar.gz
ASoC: sn95031: Pass CODEC to sn95031_jack_detection()
The sn95031 driver currently gets the CODEC implicitly from the jack that is passed to sn95031_jack_detection(). But the codec field is going to be removed from the snd_soc_jack struct, so refactor things to pass the CODEC explicitly. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/sn95031.h')
-rw-r--r--sound/soc/codecs/sn95031.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/sn95031.h b/sound/soc/codecs/sn95031.h
index 20376d2..7651fe4 100644
--- a/sound/soc/codecs/sn95031.h
+++ b/sound/soc/codecs/sn95031.h
@@ -127,6 +127,7 @@ struct mfld_jack_data {
struct snd_soc_jack *mfld_jack;
};
-extern void sn95031_jack_detection(struct mfld_jack_data *jack_data);
+extern void sn95031_jack_detection(struct snd_soc_codec *codec,
+ struct mfld_jack_data *jack_data);
#endif
OpenPOWER on IntegriCloud