ASoC: sgtl5000: Print revision number in hex
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 16 Jan 2012 19:32:21 +0000 (17:32 -0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 20 Jan 2012 13:58:31 +0000 (13:58 +0000)
Throughout the sgtl5000 driver source code and also in the sgtl5000 datasheet
the revision code is shown in hexadecimal.

Print it hex format, for consistency.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/sgtl5000.c

index 7f4ba819a9f681dad3f962ae7c65c60d73b0f2a3..04ea4850cd43188eb1c82e4d25db3db790ac0d40 100644 (file)
@@ -1248,7 +1248,7 @@ static int sgtl5000_enable_regulators(struct snd_soc_codec *codec)
        }
 
        rev = (reg & SGTL5000_REVID_MASK) >> SGTL5000_REVID_SHIFT;
-       dev_info(codec->dev, "sgtl5000 revision %d\n", rev);
+       dev_info(codec->dev, "sgtl5000 revision 0x%x\n", rev);
 
        /*
         * workaround for revision 0x11 and later,