From: Gianluca Gennari Date: Mon, 24 Sep 2012 10:37:16 +0000 (-0300) Subject: [media] fc2580: define const as UL to silence a warning X-Git-Tag: upstream/snapshot3+hdmi~4891^2~1064 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e221a1b8960e7083029018e3cf2b4097e27d4891;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [media] fc2580: define const as UL to silence a warning 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 Reviewed-by: Antti Palosaari Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/tuners/fc2580.c b/drivers/media/tuners/fc2580.c index ec7965d..5206ccb 100644 --- a/drivers/media/tuners/fc2580.c +++ b/drivers/media/tuners/fc2580.c @@ -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;