diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-12-12 16:43:57 -0800 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-12-12 16:43:57 -0800 |
commit | 0e33cee5e160ae0638795ac4157df047a3647e8a (patch) | |
tree | c2bd6fd8fe1600cf3ea5ad360509258bf2bceee3 | |
parent | e5495a700e69283077b0f9e773c65bb099094d01 (diff) | |
download | mediapointer-dvb-s2-0e33cee5e160ae0638795ac4157df047a3647e8a.tar.gz mediapointer-dvb-s2-0e33cee5e160ae0638795ac4157df047a3647e8a.tar.bz2 |
git-dvb: drivers/media/dvb/frontends/zl10353.c: avoid 64-bit divide
From: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | linux/drivers/media/dvb/frontends/zl10353.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/zl10353.c b/linux/drivers/media/dvb/frontends/zl10353.c index 276612e00..bc8e7b0f5 100644 --- a/linux/drivers/media/dvb/frontends/zl10353.c +++ b/linux/drivers/media/dvb/frontends/zl10353.c @@ -149,7 +149,8 @@ static void zl10353_calc_nominal_rate(struct dvb_frontend *fe, break; } - value = (bw * (u64)10 * (1 << 23) / 7 * 125 + adc_clock / 2); + value = (u64)10 * (1 << 23) / 7 * 125; + value = (bw * value) + adc_clock / 2; do_div(value, adc_clock); *nominal_rate = value; |