ASoC: max98095: Fix build failure
PATCH 1/1 ASoC: max98095: Fix build failure
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'
--- sound/soc/codecs/max98095.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/max98095.c +2 -2
@@ -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 ) {
Signature · 1 line
1.7.9.1
Quoted 15 lines · Mark Brown
sound/soc/codecs/max98095.c: In function 'max98095_jack_detect_enable':sound/soc/codecs/max98095.c:2229:14: error: 'structmax98095_priv' has no member named 'jack_detect_delay'sound/soc/codecs/max98095.c:2230:18: error: 'structmax98095_priv' has no member named 'jack_detect_delay'Reported-by Stephen Rothwell <[email protected]>Signed-off-by Mark Brown <[email protected]>--- sound/soc/codecs/max98095.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)sound/soc/codecs/max98095.c +0
-0
sound/soc/codecs/max98095.c int max98095_jack_detect_enable(struct snd_soc_codec *codec) · line 2233
Quoted 10 lines
sound/soc/codecs/max98095.c +2
-2@@ -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 ) {
Acked-by Rhyland Klein <[email protected]>
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------