All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] ASoC: adau1701: type bug with ADAU1707_CLKDIV_UNSET
@ 2013-07-25 16:40 ` Dan Carpenter
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2013-07-25 16:40 UTC (permalink / raw)
  To: Lars-Peter Clausen, Daniel Mack
  Cc: devicetree, alsa-devel, Takashi Iwai, kernel-janitors,
	Liam Girdwood, Rob Herring, Mark Brown, device-drivers-devel,
	Grant Likely

ADAU1707_CLKDIV_UNSET is always compared against an unsigned int and
not an unsigned long.  The current tests are always false.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/sound/soc/codecs/adau1701.c b/sound/soc/codecs/adau1701.c
index 44d8a95..2c10252 100644
--- a/sound/soc/codecs/adau1701.c
+++ b/sound/soc/codecs/adau1701.c
@@ -91,7 +91,7 @@
 #define ADAU1701_OSCIPOW_OPD		0x04
 #define ADAU1701_DACSET_DACINIT		1
 
-#define ADAU1707_CLKDIV_UNSET		(-1UL)
+#define ADAU1707_CLKDIV_UNSET		(-1U)
 
 #define ADAU1701_FIRMWARE "adau1701.bin"
 

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-07-26 16:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-25 16:40 [patch] ASoC: adau1701: type bug with ADAU1707_CLKDIV_UNSET Dan Carpenter
2013-07-25 16:40 ` Dan Carpenter
2013-07-25 16:40 ` Dan Carpenter
2013-07-26 15:54 ` [alsa-devel] " Daniel Mack
2013-07-26 15:54   ` Daniel Mack
2013-07-26 16:02 ` Mark Brown
2013-07-26 16:02   ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.