提交 e221a1b8 编写于 作者: G Gianluca Gennari 提交者: Mauro Carvalho Chehab

[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: NGianluca Gennari <gennarone@gmail.com>
Reviewed-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 0c42a55c
...@@ -147,7 +147,7 @@ static int fc2580_set_params(struct dvb_frontend *fe) ...@@ -147,7 +147,7 @@ static int fc2580_set_params(struct dvb_frontend *fe)
f_vco = c->frequency; f_vco = c->frequency;
f_vco *= fc2580_pll_lut[i].div; f_vco *= fc2580_pll_lut[i].div;
if (f_vco >= 2600000000) if (f_vco >= 2600000000UL)
tmp_val = 0x0e | fc2580_pll_lut[i].band; tmp_val = 0x0e | fc2580_pll_lut[i].band;
else else
tmp_val = 0x06 | fc2580_pll_lut[i].band; tmp_val = 0x06 | fc2580_pll_lut[i].band;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册