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>
This commit is contained in:
xiangxiao
2014-02-23 14:40:44 +08:00
committed by Mark Brown
parent 38dbfb59d1
commit cb29d7b9ef
2 changed files with 3 additions and 2 deletions

View File

@@ -250,7 +250,7 @@ static void snd_soc_jack_gpio_detect(struct snd_soc_jack_gpio *gpio)
report = 0;
if (gpio->jack_status_check)
report = gpio->jack_status_check();
report = gpio->jack_status_check(gpio->data);
snd_soc_jack_report(jack, report, gpio->report);
}