Skip to content

Commit

Permalink
ASoC: max98095: Fix build failure
Browse files Browse the repository at this point in the history
sound/soc/codecs/max98095.c: In function 'max98095_jack_detect_enable':
sound/soc/codecs/max98095.c:2229:14: error: 'struct max98095_priv' has no member named 'jack_detect_delay'
sound/soc/codecs/max98095.c:2230:18: error: 'struct max98095_priv' has no member named 'jack_detect_delay'

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Apr 2, 2012
1 parent dbf7a73 commit 0841b04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/max98095.c
Original file line number Diff line number Diff line change
Expand Up @@ -2226,8 +2226,8 @@ int max98095_jack_detect_enable(struct snd_soc_codec *codec)
if (max98095->pdata->jack_detect_pin5en)
detect_enable |= M98095_PIN5EN;

if (max98095->jack_detect_delay)
slew = max98095->jack_detect_delay;
if (max98095->pdata->jack_detect_delay)
slew = max98095->pdata->jack_detect_delay;

ret = snd_soc_write(codec, M98095_08E_JACK_DC_SLEW, slew);
if (ret < 0) {
Expand Down

0 comments on commit 0841b04

Please sign in to comment.