Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 261244
b: refs/heads/master
c: 1368ceb
h: refs/heads/master
v: v3
  • Loading branch information
Istvan Varga authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent 91e875c commit 3b42b04
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 5614942bb06f5620d0d6eb67bc0268c76c5dd921
refs/heads/master: 1368ceb266990af58a72cdb0e121eb4ff22bde6f
5 changes: 3 additions & 2 deletions trunk/drivers/media/common/tuners/xc4000.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,9 @@ static int xc_get_frequency_error(struct xc4000_priv *priv, u32 *freq_error_hz)
if (result != XC_RESULT_SUCCESS)
return result;

tmp = (u32)regData;
(*freq_error_hz) = (tmp * 15625) / 1000;
tmp = (u32)regData & 0xFFFFU;
tmp = (tmp < 0x8000U ? tmp : 0x10000U - tmp);
(*freq_error_hz) = tmp * 15625;
return result;
}

Expand Down

0 comments on commit 3b42b04

Please sign in to comment.