Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331210
b: refs/heads/master
c: 9dc7216
h: refs/heads/master
v: v3
  • Loading branch information
Gianluca Gennari authored and Mauro Carvalho Chehab committed Oct 1, 2012
1 parent b597989 commit d11a563
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e6dc88f3777bedaf7cec5987b251975a3d14d3d
refs/heads/master: 9dc72160d13c6fdeec57f5c6017588812c4294b6
3 changes: 1 addition & 2 deletions trunk/drivers/media/tuners/fc2580.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ static int fc2580_set_params(struct dvb_frontend *fe)
}

f_ref = 2UL * priv->cfg->clock / r_val;
n_val = f_vco / f_ref;
k_val = f_vco % f_ref;
n_val = div_u64_rem(f_vco, f_ref, &k_val);
k_val_reg = 1UL * k_val * (1 << 20) / f_ref;

ret = fc2580_wr_reg(priv, 0x18, r18_val | ((k_val_reg >> 16) & 0xff));
Expand Down

0 comments on commit d11a563

Please sign in to comment.