[alsa-devel] [PATCH] ASoC: Correct revision display for WM1250-EV1 module

Mark Brown broonie at opensource.wolfsonmicro.com
Sun Aug 14 12:26:32 CEST 2011


The hardware documentation uses revision numbers starting at 1.

Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
---
 sound/soc/codecs/wm1250-ev1.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sound/soc/codecs/wm1250-ev1.c b/sound/soc/codecs/wm1250-ev1.c
index a98a3ff1..4523c4c 100644
--- a/sound/soc/codecs/wm1250-ev1.c
+++ b/sound/soc/codecs/wm1250-ev1.c
@@ -74,7 +74,7 @@ static int __devinit wm1250_ev1_probe(struct i2c_client *i2c,
 		return -ENODEV;
 	}
 
-	dev_info(&i2c->dev, "revision %d\n", rev);
+	dev_info(&i2c->dev, "revision %d\n", rev + 1);
 
 	return snd_soc_register_codec(&i2c->dev, &soc_codec_dev_wm1250_ev1,
 				      &wm1250_ev1_dai, 1);
-- 
1.7.5.4



More information about the Alsa-devel mailing list