ASoC: wm8995: Return -EINVAL if device ID mismatch
Subsystems (3)
PATCH 1/2 ASoC: wm8995: Return -EINVAL if device ID mismatch
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/codecs/wm8995.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
sound/soc/codecs/wm8995.c +1 -0
@@ -1642,6 +1642,7 @@ static int wm8995_probe(struct snd_soc_codec *codec)if (ret !=0x8995 ) {dev_err (codec->dev,"Invalid device ID: %#x\n" , ret); + ret = -EINVAL ; goto err_reg_enable; }
Signature · 1 line
1.7.4.1
PATCH 2/2 ASoC: wm8995: Remove unused i2c variable in wm8995_remove()
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/codecs/wm8995.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
sound/soc/codecs/wm8995.c +0 -2
@@ -1573,9 +1573,7 @@ static int wm8995_resume(struct snd_soc_codec *codec)static int wm8995_remove (struct snd_soc_codec *codec) {struct wm8995_priv *wm8995; -struct i2c_client *i2c; - i2c = container_of(codec->dev, struct i2c_client, dev); wm8995 =snd_soc_codec_get_drvdata (codec);wm8995_set_bias_level (codec,SND_SOC_BIAS_OFF );return 0 ;
Signature · 1 line
1.7.4.1
Quoted 10 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>--- sound/soc/codecs/wm8995.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)sound/soc/codecs/wm8995.c +0
-0
sound/soc/codecs/wm8995.c static int wm8995_probe(struct snd_soc_codec *codec) · line 1648
Quoted 7 lines
sound/soc/codecs/wm8995.c +1
-0@@ -1642,6 +1642,7 @@ static int wm8995_probe(struct snd_soc_codec *codec)if (ret !=0x8995 ) {dev_err (codec->dev,"Invalid device ID: %#x\n" , ret); + ret = -EINVAL ; goto err_reg_enable; }
Both
Acked-by Liam Girdwood <[email protected]>
Mark Brown
AppliedQuoted 1 line · Axel Lin
Signed-off-by Axel Lin <[email protected]>
Applied both, thanks.