[media] hackrf: Fix a long constant
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 23:35:05 +0000 (20:35 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 23:35:47 +0000 (20:35 -0300)
drivers/media/usb/hackrf/hackrf.c:64:3: warning: this decimal constant is unsigned only in ISO C90 [enabled by default]
   .rangehigh  = 4294967294, /* max u32, hw goes over 7GHz */
   ^

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/hackrf/hackrf.c

index 94276525b0379fe6c22453a9565d10303129d4ae..328b5ba47a0a20b1f93ade77a74c0c9fb4e06cfe 100644 (file)
@@ -61,7 +61,7 @@ static const struct v4l2_frequency_band bands_rf[] = {
                .index = 0,
                .capability = V4L2_TUNER_CAP_1HZ | V4L2_TUNER_CAP_FREQ_BANDS,
                .rangelow   =          1,
-               .rangehigh  = 4294967294, /* max u32, hw goes over 7GHz */
+               .rangehigh  = 4294967294LL, /* max u32, hw goes over 7GHz */
        },
 };