Commit 75ab7f1d authored by Linus Torvalds's avatar Linus Torvalds

Avoid unnecessary floating point usage in av7110 DVB driver

parent 5b84ad19
...@@ -2706,9 +2706,9 @@ static int tuner_set_tv_freq (struct saa7146_dev *dev, u32 freq) ...@@ -2706,9 +2706,9 @@ static int tuner_set_tv_freq (struct saa7146_dev *dev, u32 freq)
buf[1] = div & 0xff; buf[1] = div & 0xff;
buf[2] = 0x8e; buf[2] = 0x8e;
if (freq < 16*168.25 ) if (freq < (u32) (16*168.25) )
config = 0xa0; config = 0xa0;
else if (freq < 16*447.25) else if (freq < (u32) (16*447.25))
config = 0x90; config = 0x90;
else else
config = 0x30; config = 0x30;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment