diff mbox

ASoC: cs35l35: Fix display revision id

Message ID 20170311125707.14309-1-axel.lin@ingics.com (mailing list archive)
State New, archived
Headers show

Commit Message

Axel Lin March 11, 2017, 12:57 p.m. UTC
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/cs35l35.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paul Handrigan March 13, 2017, 2:32 p.m. UTC | #1
On Sat, 11 Mar 2017, Axel Lin wrote:

> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  sound/soc/codecs/cs35l35.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/codecs/cs35l35.c b/sound/soc/codecs/cs35l35.c
> index 260ed42..9c82e5e 100644
> --- a/sound/soc/codecs/cs35l35.c
> +++ b/sound/soc/codecs/cs35l35.c
> @@ -1468,7 +1468,7 @@ static int cs35l35_i2c_probe(struct i2c_client *i2c_client,
>  
>  	dev_info(&i2c_client->dev,
>  		 "Cirrus Logic CS35L35 (%x), Revision: %02X\n", devid,
> -		ret & 0xFF);
> +		reg & 0xFF);
>  
>  	/* Set the INT Masks for critical errors */
>  	regmap_write(cs35l35->regmap, CS35L35_INT_MASK_1,

Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
diff mbox

Patch

diff --git a/sound/soc/codecs/cs35l35.c b/sound/soc/codecs/cs35l35.c
index 260ed42..9c82e5e 100644
--- a/sound/soc/codecs/cs35l35.c
+++ b/sound/soc/codecs/cs35l35.c
@@ -1468,7 +1468,7 @@  static int cs35l35_i2c_probe(struct i2c_client *i2c_client,
 
 	dev_info(&i2c_client->dev,
 		 "Cirrus Logic CS35L35 (%x), Revision: %02X\n", devid,
-		ret & 0xFF);
+		reg & 0xFF);
 
 	/* Set the INT Masks for critical errors */
 	regmap_write(cs35l35->regmap, CS35L35_INT_MASK_1,