Skip to content

Commit

Permalink
[media] fc2580: define const as UL to silence a warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gianluca Gennari authored and Mauro Carvalho Chehab committed Oct 1, 2012
1 parent 0c42a55 commit e221a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/tuners/fc2580.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e221a1b

Please sign in to comment.