[media] fc2580: define const as UL to silence a warning
authorGianluca Gennari <gennarone@gmail.com>
Mon, 24 Sep 2012 10:37:16 +0000 (07:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Oct 2012 20:07:06 +0000 (17:07 -0300)
fc2580.c: In function 'fc2580_set_params':
fc2580.c:150: warning: this decimal constant is unsigned only in ISO C90

Signed-off-by: Gianluca Gennari <gennarone@gmail.com>
Reviewed-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/tuners/fc2580.c

index ec7965d7c2f8f36e4d30da940c92c30adec4fb97..5206ccb588afcc35c46c4ae2a88338f8cc1f3365 100644 (file)
@@ -147,7 +147,7 @@ static int fc2580_set_params(struct dvb_frontend *fe)
        f_vco = c->frequency;
        f_vco *= fc2580_pll_lut[i].div;
 
-       if (f_vco >= 2600000000)
+       if (f_vco >= 2600000000UL)
                tmp_val = 0x0e | fc2580_pll_lut[i].band;
        else
                tmp_val = 0x06 | fc2580_pll_lut[i].band;