summaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
authorxiangxiao <xiaoxiang@xiaomi.com>2014-02-23 14:40:44 +0800
committerMark Brown <broonie@linaro.org>2014-02-24 10:27:44 +0900
commitcb29d7b9ef7faf95e27d90362a5e7694c5479093 (patch)
treefe51f47d477c2a723392a7e5a0e041dc9853516e /include/sound
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
downloadblackbird-op-linux-cb29d7b9ef7faf95e27d90362a5e7694c5479093.tar.gz
blackbird-op-linux-cb29d7b9ef7faf95e27d90362a5e7694c5479093.zip
ASoC: add data field into snd_soc_jack_gpio
so callback could get the context data as needed Signed-off-by: xiangxiao <xiaoxiang@xiaomi.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/soc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h
index 9a001472b96a..266c188cc36f 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -600,7 +600,8 @@ struct snd_soc_jack_gpio {
struct snd_soc_jack *jack;
struct delayed_work work;
- int (*jack_status_check)(void);
+ void *data;
+ int (*jack_status_check)(void *data);
};
struct snd_soc_jack {
OpenPOWER on IntegriCloud