Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285634
b: refs/heads/master
c: fd1126c
h: refs/heads/master
v: v3
  • Loading branch information
Mauro Carvalho Chehab committed Jan 5, 2012
1 parent e7bf497 commit 21b07cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 32 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: 8c64f93285e81e7595d169aac9636d215ba5bcb7
refs/heads/master: fd1126cac093f626e412c0419c763ea3ee304dfe
34 changes: 3 additions & 31 deletions trunk/drivers/media/common/tuners/mt2063.c
Original file line number Diff line number Diff line change
Expand Up @@ -951,34 +951,6 @@ static u32 MT2063_gcd(u32 u, u32 v)
return u;
}

/****************************************************************************
**
** Name: umax
**
** Description: Implements a simple maximum function for unsigned numbers.
** Implemented as a function rather than a macro to avoid
** multiple evaluation of the calling parameters.
**
** Parameters: a, b - Values to be compared
**
** Global: None
**
** Returns: larger of the input values.
**
** Dependencies: None.
**
** Revision History:
**
** SCR Date Author Description
** -------------------------------------------------------------------------
** N/A 06-02-2004 JWS Original
**
****************************************************************************/
static u32 MT2063_umax(u32 a, u32 b)
{
return (a >= b) ? a : b;
}

/****************************************************************************
**
** Name: IsSpurInBand
Expand Down Expand Up @@ -1037,11 +1009,11 @@ static u32 IsSpurInBand(struct MT2063_AvoidSpursData_t *pAS_Info,
** gcd-based scale factor or f_Scale.
*/
lo_gcd = MT2063_gcd(f_LO1, f_LO2);
gd_Scale = MT2063_umax((u32) MT2063_gcd(lo_gcd, d), f_Scale);
gd_Scale = max((u32) MT2063_gcd(lo_gcd, d), f_Scale);
hgds = gd_Scale / 2;
gc_Scale = MT2063_umax((u32) MT2063_gcd(lo_gcd, c), f_Scale);
gc_Scale = max((u32) MT2063_gcd(lo_gcd, c), f_Scale);
hgcs = gc_Scale / 2;
gf_Scale = MT2063_umax((u32) MT2063_gcd(lo_gcd, f), f_Scale);
gf_Scale = max((u32) MT2063_gcd(lo_gcd, f), f_Scale);
hgfs = gf_Scale / 2;

n0 = DIV_ROUND_UP(f_LO2 - d, f_LO1 - f_LO2);
Expand Down

0 comments on commit 21b07cf

Please sign in to comment.