Skip to contentSkip to conversation

ASoC: fsl: imx-pcm-fiq: Use 'unsigned int' for period

PATCH Applied Fabio Estevam 2 participants 2 messages Mar 20, 2013

Subsystems (4)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ASoC: fsl: imx-pcm-fiq: Use 'unsigned int' for period

From: Fabio Estevam <[email protected]>

Fix the following warning when building with W=1 option:

sound/soc/fsl/imx-pcm-fiq.c: In function 'snd_hrtimer_callback':
sound/soc/fsl/imx-pcm-fiq.c:76:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

---
 sound/soc/fsl/imx-pcm-fiq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/fsl/imx-pcm-fiq.c +1 -1
index 920f945..47228c0 100644
@@ -34,7 +34,7 @@
 #include "imx-ssi.h"
 
 struct imx_pcm_runtime_data {
-	int period;
+	unsigned int period;
 	int periods;
 	unsigned long offset;
 	unsigned long last_offset;
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 3 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Fix the following warning when building with W=1 option:

Applied, thanks.