diff options
Diffstat (limited to 'drivers/media/dvb/frontends/dib7000p.c')
-rw-r--r-- | drivers/media/dvb/frontends/dib7000p.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/dib7000p.c b/drivers/media/dvb/frontends/dib7000p.c index 8217e5b38f47..fc96fbf03d6d 100644 --- a/drivers/media/dvb/frontends/dib7000p.c +++ b/drivers/media/dvb/frontends/dib7000p.c | |||
@@ -883,7 +883,7 @@ static void dib7000p_spur_protect(struct dib7000p_state *state, u32 rf_khz, u32 | |||
883 | 255, 255, 255, 255, 255, 255}; | 883 | 255, 255, 255, 255, 255, 255}; |
884 | 884 | ||
885 | u32 xtal = state->cfg.bw->xtal_hz / 1000; | 885 | u32 xtal = state->cfg.bw->xtal_hz / 1000; |
886 | int f_rel = ( (rf_khz + xtal/2) / xtal) * xtal - rf_khz; | 886 | int f_rel = DIV_ROUND_CLOSEST(rf_khz, xtal) * xtal - rf_khz; |
887 | int k; | 887 | int k; |
888 | int coef_re[8],coef_im[8]; | 888 | int coef_re[8],coef_im[8]; |
889 | int bw_khz = bw; | 889 | int bw_khz = bw; |