]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: fsl: imx-pcm-fiq: Use 'unsigned int' for period
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 20 Mar 2013 05:22:40 +0000 (02:22 -0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 20 Mar 2013 09:58:39 +0000 (10:58 +0100)
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]

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

index 920f945cb2f4e17d721f7e5f542ca0b454ba9b74..47228c0f929e54a477f634b6829ea364c606cd22 100644 (file)
@@ -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;