aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2011-07-21 12:41:29 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-04 19:21:05 -0500
commite3f94fb8c53bb0537396b66da5f86f3865fdb616 (patch)
tree0a1d19db75f289f0670758135a18270fa7f2e99d /drivers
parent8294e3ed418e0521e9c48c3b2653cdec163bbc17 (diff)
[media] mt2063: Cleanup some function prototypes
No functional changes here. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/common/tuners/mt2063.c44
1 files changed, 16 insertions, 28 deletions
diff --git a/drivers/media/common/tuners/mt2063.c b/drivers/media/common/tuners/mt2063.c
index 0f4bf96b61eb..d13b78ba45d0 100644
--- a/drivers/media/common/tuners/mt2063.c
+++ b/drivers/media/common/tuners/mt2063.c
@@ -420,7 +420,7 @@ static struct MT2063_ExclZone_t *RemoveNode(struct MT2063_AvoidSpursData_t
420** 420**
421*****************************************************************************/ 421*****************************************************************************/
422static void MT2063_AddExclZone(struct MT2063_AvoidSpursData_t *pAS_Info, 422static void MT2063_AddExclZone(struct MT2063_AvoidSpursData_t *pAS_Info,
423 u32 f_min, u32 f_max) 423 u32 f_min, u32 f_max)
424{ 424{
425 struct MT2063_ExclZone_t *pNode = pAS_Info->usedZones; 425 struct MT2063_ExclZone_t *pNode = pAS_Info->usedZones;
426 struct MT2063_ExclZone_t *pPrev = NULL; 426 struct MT2063_ExclZone_t *pPrev = NULL;
@@ -734,7 +734,7 @@ static u32 MT2063_gcd(u32 u, u32 v)
734** 734**
735****************************************************************************/ 735****************************************************************************/
736static u32 IsSpurInBand(struct MT2063_AvoidSpursData_t *pAS_Info, 736static u32 IsSpurInBand(struct MT2063_AvoidSpursData_t *pAS_Info,
737 u32 * fm, u32 * fp) 737 u32 *fm, u32 * fp)
738{ 738{
739 /* 739 /*
740 ** Calculate LO frequency settings. 740 ** Calculate LO frequency settings.
@@ -849,7 +849,7 @@ static u32 IsSpurInBand(struct MT2063_AvoidSpursData_t *pAS_Info,
849** 096 04-06-2005 DAD Ver 1.11: Fix divide by 0 error if maxH==0. 849** 096 04-06-2005 DAD Ver 1.11: Fix divide by 0 error if maxH==0.
850** 850**
851*****************************************************************************/ 851*****************************************************************************/
852static u32 MT2063_AvoidSpurs(void *h, struct MT2063_AvoidSpursData_t * pAS_Info) 852static u32 MT2063_AvoidSpurs(struct MT2063_AvoidSpursData_t *pAS_Info)
853{ 853{
854 u32 status = 0; 854 u32 status = 0;
855 u32 fm, fp; /* restricted range on LO's */ 855 u32 fm, fp; /* restricted range on LO's */
@@ -1011,18 +1011,6 @@ static const u8 FIFOVDIS[] = { 0, 0, 0, 0, 0, 0 };
1011static const u8 ACFIFMAX[] = { 29, 29, 29, 29, 29, 29 }; 1011static const u8 ACFIFMAX[] = { 29, 29, 29, 29, 29, 29 };
1012static const u8 PD2TGT[] = { 40, 33, 38, 42, 30, 38 }; 1012static const u8 PD2TGT[] = { 40, 33, 38, 42, 30, 38 };
1013 1013
1014/*
1015** Local Function Prototypes - not available for external access.
1016*/
1017
1018/* Forward declaration(s): */
1019static u32 MT2063_CalcLO1Mult(u32 * Div, u32 * FracN, u32 f_LO,
1020 u32 f_LO_Step, u32 f_Ref);
1021static u32 MT2063_CalcLO2Mult(u32 * Div, u32 * FracN, u32 f_LO,
1022 u32 f_LO_Step, u32 f_Ref);
1023static u32 MT2063_fLO_FractionalTerm(u32 f_ref, u32 num,
1024 u32 denom);
1025
1026/** 1014/**
1027 * mt2063_lockStatus - Checks to see if LO1 and LO2 are locked 1015 * mt2063_lockStatus - Checks to see if LO1 and LO2 are locked
1028 * 1016 *
@@ -1300,7 +1288,7 @@ static u32 mt2063_set_dnc_output_enable(struct mt2063_state *state,
1300** 1288**
1301******************************************************************************/ 1289******************************************************************************/
1302static u32 MT2063_SetReceiverMode(struct mt2063_state *state, 1290static u32 MT2063_SetReceiverMode(struct mt2063_state *state,
1303 enum MT2063_RCVR_MODES Mode) 1291 enum MT2063_RCVR_MODES Mode)
1304{ 1292{
1305 u32 status = 0; /* Status to be returned */ 1293 u32 status = 0; /* Status to be returned */
1306 u8 val; 1294 u8 val;
@@ -1464,7 +1452,8 @@ static u32 MT2063_SetReceiverMode(struct mt2063_state *state,
1464** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. 1452** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.
1465** 1453**
1466****************************************************************************/ 1454****************************************************************************/
1467static u32 MT2063_ClearPowerMaskBits(struct mt2063_state *state, enum MT2063_Mask_Bits Bits) 1455static u32 MT2063_ClearPowerMaskBits(struct mt2063_state *state,
1456 enum MT2063_Mask_Bits Bits)
1468{ 1457{
1469 u32 status = 0; /* Status to be returned */ 1458 u32 status = 0; /* Status to be returned */
1470 1459
@@ -1584,8 +1573,7 @@ static u32 MT2063_Round_fLO(u32 f_LO, u32 f_LO_Step, u32 f_ref)
1584** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. 1573** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.
1585** 1574**
1586****************************************************************************/ 1575****************************************************************************/
1587static u32 MT2063_fLO_FractionalTerm(u32 f_ref, 1576static u32 MT2063_fLO_FractionalTerm(u32 f_ref, u32 num, u32 denom)
1588 u32 num, u32 denom)
1589{ 1577{
1590 u32 t1 = (f_ref >> 14) * num; 1578 u32 t1 = (f_ref >> 14) * num;
1591 u32 term1 = t1 / denom; 1579 u32 term1 = t1 / denom;
@@ -1623,9 +1611,9 @@ static u32 MT2063_fLO_FractionalTerm(u32 f_ref,
1623** 1611**
1624****************************************************************************/ 1612****************************************************************************/
1625static u32 MT2063_CalcLO1Mult(u32 * Div, 1613static u32 MT2063_CalcLO1Mult(u32 * Div,
1626 u32 * FracN, 1614 u32 * FracN,
1627 u32 f_LO, 1615 u32 f_LO,
1628 u32 f_LO_Step, u32 f_Ref) 1616 u32 f_LO_Step, u32 f_Ref)
1629{ 1617{
1630 /* Calculate the whole number portion of the divider */ 1618 /* Calculate the whole number portion of the divider */
1631 *Div = f_LO / f_Ref; 1619 *Div = f_LO / f_Ref;
@@ -1666,9 +1654,9 @@ static u32 MT2063_CalcLO1Mult(u32 * Div,
1666** 1654**
1667****************************************************************************/ 1655****************************************************************************/
1668static u32 MT2063_CalcLO2Mult(u32 * Div, 1656static u32 MT2063_CalcLO2Mult(u32 * Div,
1669 u32 * FracN, 1657 u32 * FracN,
1670 u32 f_LO, 1658 u32 f_LO,
1671 u32 f_LO_Step, u32 f_Ref) 1659 u32 f_LO_Step, u32 f_Ref)
1672{ 1660{
1673 /* Calculate the whole number portion of the divider */ 1661 /* Calculate the whole number portion of the divider */
1674 *Div = f_LO / f_Ref; 1662 *Div = f_LO / f_Ref;
@@ -1857,7 +1845,7 @@ static u32 MT2063_Tune(struct mt2063_state *state, u32 f_in)
1857 ** Check for any LO spurs in the output bandwidth and adjust 1845 ** Check for any LO spurs in the output bandwidth and adjust
1858 ** the LO settings to avoid them if needed 1846 ** the LO settings to avoid them if needed
1859 */ 1847 */
1860 status |= MT2063_AvoidSpurs(state, &state->AS_Data); 1848 status |= MT2063_AvoidSpurs(&state->AS_Data);
1861 /* 1849 /*
1862 ** MT_AvoidSpurs spurs may have changed the LO1 & LO2 values. 1850 ** MT_AvoidSpurs spurs may have changed the LO1 & LO2 values.
1863 ** Recalculate the LO frequencies and the values to be placed 1851 ** Recalculate the LO frequencies and the values to be placed
@@ -1967,7 +1955,7 @@ static u32 MT2063_Tune(struct mt2063_state *state, u32 f_in)
1967} 1955}
1968 1956
1969int mt2063_setTune(struct dvb_frontend *fe, u32 f_in, u32 bw_in, 1957int mt2063_setTune(struct dvb_frontend *fe, u32 f_in, u32 bw_in,
1970 enum MTTune_atv_standard tv_type) 1958 enum MTTune_atv_standard tv_type)
1971{ 1959{
1972 struct mt2063_state *state = fe->tuner_priv; 1960 struct mt2063_state *state = fe->tuner_priv;
1973 u32 status = 0; 1961 u32 status = 0;
@@ -2349,7 +2337,7 @@ static int mt2063_get_status(struct dvb_frontend *fe, u32 * status)
2349{ 2337{
2350 int rc = 0; 2338 int rc = 0;
2351 2339
2352 //get tuner lock status 2340 /* FIXME: add get tuner lock status */
2353 2341
2354 return rc; 2342 return rc;
2355} 2343}