diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-20 20:43:30 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-04 19:17:59 -0500 |
commit | bf97555e08360bb57b5655da40ebe5818e84cd48 (patch) | |
tree | 0e8672c47d9f94f72521ddc7bb1628cfeedc5cce /drivers/media/common/tuners/mt2063.c | |
parent | a0813ea3409dadc294fedb033ec2c4be9ecba0d2 (diff) |
[media] mt2063: Re-define functions as static
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/tuners/mt2063.c')
-rw-r--r-- | drivers/media/common/tuners/mt2063.c | 84 |
1 files changed, 44 insertions, 40 deletions
diff --git a/drivers/media/common/tuners/mt2063.c b/drivers/media/common/tuners/mt2063.c index 63d964ac13b6..85980cc3ce38 100644 --- a/drivers/media/common/tuners/mt2063.c +++ b/drivers/media/common/tuners/mt2063.c | |||
@@ -13,6 +13,16 @@ static unsigned int verbose; | |||
13 | module_param(verbose, int, 0644); | 13 | module_param(verbose, int, 0644); |
14 | 14 | ||
15 | 15 | ||
16 | /* Prototypes */ | ||
17 | static void MT2063_AddExclZone(struct MT2063_AvoidSpursData_t *pAS_Info, | ||
18 | u32 f_min, u32 f_max); | ||
19 | static u32 MT2063_ReInit(void *h); | ||
20 | static u32 MT2063_Close(void *hMT2063); | ||
21 | static u32 MT2063_GetReg(void *h, u8 reg, u8 * val); | ||
22 | static u32 MT2063_GetParam(void *h, enum MT2063_Param param, u32 * pValue); | ||
23 | static u32 MT2063_SetReg(void *h, u8 reg, u8 val); | ||
24 | static u32 MT2063_SetParam(void *h, enum MT2063_Param param, u32 nValue); | ||
25 | |||
16 | /*****************/ | 26 | /*****************/ |
17 | /* From drivers/media/common/tuners/mt2063_cfg.h */ | 27 | /* From drivers/media/common/tuners/mt2063_cfg.h */ |
18 | 28 | ||
@@ -233,7 +243,7 @@ static int mt2063_read_regs(struct mt2063_state *state, u8 reg1, u8 * b, u8 len) | |||
233 | ** N/A 03-25-2004 DAD Original | 243 | ** N/A 03-25-2004 DAD Original |
234 | ** | 244 | ** |
235 | *****************************************************************************/ | 245 | *****************************************************************************/ |
236 | u32 MT2063_WriteSub(void *hUserData, | 246 | static u32 MT2063_WriteSub(void *hUserData, |
237 | u32 addr, | 247 | u32 addr, |
238 | u8 subAddress, u8 * pData, u32 cnt) | 248 | u8 subAddress, u8 * pData, u32 cnt) |
239 | { | 249 | { |
@@ -296,7 +306,7 @@ u32 MT2063_WriteSub(void *hUserData, | |||
296 | ** N/A 03-25-2004 DAD Original | 306 | ** N/A 03-25-2004 DAD Original |
297 | ** | 307 | ** |
298 | *****************************************************************************/ | 308 | *****************************************************************************/ |
299 | u32 MT2063_ReadSub(void *hUserData, | 309 | static u32 MT2063_ReadSub(void *hUserData, |
300 | u32 addr, | 310 | u32 addr, |
301 | u8 subAddress, u8 * pData, u32 cnt) | 311 | u8 subAddress, u8 * pData, u32 cnt) |
302 | { | 312 | { |
@@ -347,7 +357,7 @@ u32 MT2063_ReadSub(void *hUserData, | |||
347 | ** N/A 03-25-2004 DAD Original | 357 | ** N/A 03-25-2004 DAD Original |
348 | ** | 358 | ** |
349 | *****************************************************************************/ | 359 | *****************************************************************************/ |
350 | void MT2063_Sleep(void *hUserData, u32 nMinDelayTime) | 360 | static void MT2063_Sleep(void *hUserData, u32 nMinDelayTime) |
351 | { | 361 | { |
352 | /* | 362 | /* |
353 | ** ToDo: Add code here to implement a OS blocking | 363 | ** ToDo: Add code here to implement a OS blocking |
@@ -386,7 +396,7 @@ void MT2063_Sleep(void *hUserData, u32 nMinDelayTime) | |||
386 | ** better describes what this function does. | 396 | ** better describes what this function does. |
387 | ** | 397 | ** |
388 | *****************************************************************************/ | 398 | *****************************************************************************/ |
389 | u32 MT2060_TunerGain(void *hUserData, s32 * pMeas) | 399 | static u32 MT2060_TunerGain(void *hUserData, s32 * pMeas) |
390 | { | 400 | { |
391 | u32 status = MT2063_OK; /* Status to be returned */ | 401 | u32 status = MT2063_OK; /* Status to be returned */ |
392 | 402 | ||
@@ -465,7 +475,7 @@ static struct MT2063_AvoidSpursData_t *TunerList[MT2063_TUNER_CNT]; | |||
465 | static u32 TunerCount = 0; | 475 | static u32 TunerCount = 0; |
466 | #endif | 476 | #endif |
467 | 477 | ||
468 | u32 MT2063_RegisterTuner(struct MT2063_AvoidSpursData_t *pAS_Info) | 478 | static u32 MT2063_RegisterTuner(struct MT2063_AvoidSpursData_t *pAS_Info) |
469 | { | 479 | { |
470 | #if MT2063_TUNER_CNT == 1 | 480 | #if MT2063_TUNER_CNT == 1 |
471 | pAS_Info->nAS_Algorithm = 1; | 481 | pAS_Info->nAS_Algorithm = 1; |
@@ -496,7 +506,7 @@ u32 MT2063_RegisterTuner(struct MT2063_AvoidSpursData_t *pAS_Info) | |||
496 | #endif | 506 | #endif |
497 | } | 507 | } |
498 | 508 | ||
499 | void MT2063_UnRegisterTuner(struct MT2063_AvoidSpursData_t *pAS_Info) | 509 | static void MT2063_UnRegisterTuner(struct MT2063_AvoidSpursData_t *pAS_Info) |
500 | { | 510 | { |
501 | #if MT2063_TUNER_CNT == 1 | 511 | #if MT2063_TUNER_CNT == 1 |
502 | pAS_Info; | 512 | pAS_Info; |
@@ -519,7 +529,7 @@ void MT2063_UnRegisterTuner(struct MT2063_AvoidSpursData_t *pAS_Info) | |||
519 | ** N/A I 06-17-2008 RSK Ver 1.19: Refactoring avoidance of DECT | 529 | ** N/A I 06-17-2008 RSK Ver 1.19: Refactoring avoidance of DECT |
520 | ** frequencies into MT_ResetExclZones(). | 530 | ** frequencies into MT_ResetExclZones(). |
521 | */ | 531 | */ |
522 | void MT2063_ResetExclZones(struct MT2063_AvoidSpursData_t *pAS_Info) | 532 | static void MT2063_ResetExclZones(struct MT2063_AvoidSpursData_t *pAS_Info) |
523 | { | 533 | { |
524 | u32 center; | 534 | u32 center; |
525 | #if MT2063_TUNER_CNT > 1 | 535 | #if MT2063_TUNER_CNT > 1 |
@@ -685,7 +695,7 @@ static struct MT2063_ExclZone_t *RemoveNode(struct MT2063_AvoidSpursData_t | |||
685 | ** (f_min, f_max) < 0, ignore the entry. | 695 | ** (f_min, f_max) < 0, ignore the entry. |
686 | ** | 696 | ** |
687 | *****************************************************************************/ | 697 | *****************************************************************************/ |
688 | void MT2063_AddExclZone(struct MT2063_AvoidSpursData_t *pAS_Info, | 698 | static void MT2063_AddExclZone(struct MT2063_AvoidSpursData_t *pAS_Info, |
689 | u32 f_min, u32 f_max) | 699 | u32 f_min, u32 f_max) |
690 | { | 700 | { |
691 | struct MT2063_ExclZone_t *pNode = pAS_Info->usedZones; | 701 | struct MT2063_ExclZone_t *pNode = pAS_Info->usedZones; |
@@ -751,7 +761,7 @@ void MT2063_AddExclZone(struct MT2063_AvoidSpursData_t *pAS_Info, | |||
751 | ** Added logic to force f_Center within 1/2 f_Step. | 761 | ** Added logic to force f_Center within 1/2 f_Step. |
752 | ** | 762 | ** |
753 | *****************************************************************************/ | 763 | *****************************************************************************/ |
754 | u32 MT2063_ChooseFirstIF(struct MT2063_AvoidSpursData_t *pAS_Info) | 764 | static u32 MT2063_ChooseFirstIF(struct MT2063_AvoidSpursData_t *pAS_Info) |
755 | { | 765 | { |
756 | /* | 766 | /* |
757 | ** Update "f_Desired" to be the nearest "combinational-multiple" of "f_LO1_Step". | 767 | ** Update "f_Desired" to be the nearest "combinational-multiple" of "f_LO1_Step". |
@@ -1318,7 +1328,7 @@ static u32 IsSpurInBand(struct MT2063_AvoidSpursData_t *pAS_Info, | |||
1318 | ** 096 04-06-2005 DAD Ver 1.11: Fix divide by 0 error if maxH==0. | 1328 | ** 096 04-06-2005 DAD Ver 1.11: Fix divide by 0 error if maxH==0. |
1319 | ** | 1329 | ** |
1320 | *****************************************************************************/ | 1330 | *****************************************************************************/ |
1321 | u32 MT2063_AvoidSpurs(void *h, struct MT2063_AvoidSpursData_t * pAS_Info) | 1331 | static u32 MT2063_AvoidSpurs(void *h, struct MT2063_AvoidSpursData_t * pAS_Info) |
1322 | { | 1332 | { |
1323 | u32 status = MT2063_OK; | 1333 | u32 status = MT2063_OK; |
1324 | u32 fm, fp; /* restricted range on LO's */ | 1334 | u32 fm, fp; /* restricted range on LO's */ |
@@ -1402,7 +1412,7 @@ u32 MT2063_AvoidSpurs(void *h, struct MT2063_AvoidSpursData_t * pAS_Info) | |||
1402 | return (status); | 1412 | return (status); |
1403 | } | 1413 | } |
1404 | 1414 | ||
1405 | u32 MT2063_AvoidSpursVersion(void) | 1415 | static u32 MT2063_AvoidSpursVersion(void) |
1406 | { | 1416 | { |
1407 | return (MT2063_SPUR_VERSION); | 1417 | return (MT2063_SPUR_VERSION); |
1408 | } | 1418 | } |
@@ -1545,7 +1555,7 @@ static u32 MT2063_fLO_FractionalTerm(u32 f_ref, u32 num, | |||
1545 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 1555 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
1546 | ** | 1556 | ** |
1547 | ******************************************************************************/ | 1557 | ******************************************************************************/ |
1548 | u32 MT2063_Open(u32 MT2063_Addr, void ** hMT2063, void *hUserData) | 1558 | static u32 MT2063_Open(u32 MT2063_Addr, void ** hMT2063, void *hUserData) |
1549 | { | 1559 | { |
1550 | u32 status = MT2063_OK; /* Status to be returned. */ | 1560 | u32 status = MT2063_OK; /* Status to be returned. */ |
1551 | s32 i; | 1561 | s32 i; |
@@ -1624,7 +1634,7 @@ static u32 MT2063_IsValidHandle(struct MT2063_Info_t *handle) | |||
1624 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 1634 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
1625 | ** | 1635 | ** |
1626 | ******************************************************************************/ | 1636 | ******************************************************************************/ |
1627 | u32 MT2063_Close(void *hMT2063) | 1637 | static u32 MT2063_Close(void *hMT2063) |
1628 | { | 1638 | { |
1629 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)hMT2063; | 1639 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)hMT2063; |
1630 | 1640 | ||
@@ -1672,7 +1682,7 @@ u32 MT2063_Close(void *hMT2063) | |||
1672 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 1682 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
1673 | ** | 1683 | ** |
1674 | ******************************************************************************/ | 1684 | ******************************************************************************/ |
1675 | u32 MT2063_GetGPIO(void *h, enum MT2063_GPIO_ID gpio_id, | 1685 | static u32 MT2063_GetGPIO(void *h, enum MT2063_GPIO_ID gpio_id, |
1676 | enum MT2063_GPIO_Attr attr, u32 * value) | 1686 | enum MT2063_GPIO_Attr attr, u32 * value) |
1677 | { | 1687 | { |
1678 | u32 status = MT2063_OK; /* Status to be returned */ | 1688 | u32 status = MT2063_OK; /* Status to be returned */ |
@@ -1726,7 +1736,7 @@ u32 MT2063_GetGPIO(void *h, enum MT2063_GPIO_ID gpio_id, | |||
1726 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 1736 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
1727 | ** | 1737 | ** |
1728 | ****************************************************************************/ | 1738 | ****************************************************************************/ |
1729 | u32 MT2063_GetLocked(void *h) | 1739 | static u32 MT2063_GetLocked(void *h) |
1730 | { | 1740 | { |
1731 | const u32 nMaxWait = 100; /* wait a maximum of 100 msec */ | 1741 | const u32 nMaxWait = 100; /* wait a maximum of 100 msec */ |
1732 | const u32 nPollRate = 2; /* poll status bits every 2 ms */ | 1742 | const u32 nPollRate = 2; /* poll status bits every 2 ms */ |
@@ -1757,7 +1767,7 @@ u32 MT2063_GetLocked(void *h) | |||
1757 | (LO1LK | LO2LK)) { | 1767 | (LO1LK | LO2LK)) { |
1758 | return (status); | 1768 | return (status); |
1759 | } | 1769 | } |
1760 | MT2063_Sleep(pInfo->hUserData, nPollRate); /* Wait between retries */ | 1770 | msleep(nPollRate); /* Wait between retries */ |
1761 | } | 1771 | } |
1762 | while (++nDelays < nMaxLoops); | 1772 | while (++nDelays < nMaxLoops); |
1763 | 1773 | ||
@@ -1861,7 +1871,7 @@ u32 MT2063_GetLocked(void *h) | |||
1861 | ** 06-24-2008 PINZ Ver 1.18: Add Get/SetParam CTFILT_SW | 1871 | ** 06-24-2008 PINZ Ver 1.18: Add Get/SetParam CTFILT_SW |
1862 | ** | 1872 | ** |
1863 | ****************************************************************************/ | 1873 | ****************************************************************************/ |
1864 | u32 MT2063_GetParam(void *h, enum MT2063_Param param, u32 * pValue) | 1874 | static u32 MT2063_GetParam(void *h, enum MT2063_Param param, u32 * pValue) |
1865 | { | 1875 | { |
1866 | u32 status = MT2063_OK; /* Status to be returned */ | 1876 | u32 status = MT2063_OK; /* Status to be returned */ |
1867 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; | 1877 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; |
@@ -2265,7 +2275,7 @@ u32 MT2063_GetParam(void *h, enum MT2063_Param param, u32 * pValue) | |||
2265 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 2275 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
2266 | ** | 2276 | ** |
2267 | ****************************************************************************/ | 2277 | ****************************************************************************/ |
2268 | u32 MT2063_GetReg(void *h, u8 reg, u8 * val) | 2278 | static u32 MT2063_GetReg(void *h, u8 reg, u8 * val) |
2269 | { | 2279 | { |
2270 | u32 status = MT2063_OK; /* Status to be returned */ | 2280 | u32 status = MT2063_OK; /* Status to be returned */ |
2271 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; | 2281 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; |
@@ -2337,7 +2347,7 @@ u32 MT2063_GetReg(void *h, u8 reg, u8 * val) | |||
2337 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 2347 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
2338 | ** | 2348 | ** |
2339 | ******************************************************************************/ | 2349 | ******************************************************************************/ |
2340 | u32 MT2063_GetTemp(void *h, enum MT2063_Temperature * value) | 2350 | static u32 MT2063_GetTemp(void *h, enum MT2063_Temperature * value) |
2341 | { | 2351 | { |
2342 | u32 status = MT2063_OK; /* Status to be returned */ | 2352 | u32 status = MT2063_OK; /* Status to be returned */ |
2343 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; | 2353 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; |
@@ -2408,7 +2418,7 @@ u32 MT2063_GetTemp(void *h, enum MT2063_Temperature * value) | |||
2408 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 2418 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
2409 | ** | 2419 | ** |
2410 | ****************************************************************************/ | 2420 | ****************************************************************************/ |
2411 | u32 MT2063_GetUserData(void *h, void ** hUserData) | 2421 | static u32 MT2063_GetUserData(void *h, void ** hUserData) |
2412 | { | 2422 | { |
2413 | u32 status = MT2063_OK; /* Status to be returned */ | 2423 | u32 status = MT2063_OK; /* Status to be returned */ |
2414 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; | 2424 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; |
@@ -2658,7 +2668,7 @@ static u32 MT2063_SetReceiverMode(struct MT2063_Info_t *pInfo, | |||
2658 | ** 06-24-2008 PINZ Ver 1.18: Add Get/SetParam CTFILT_SW | 2668 | ** 06-24-2008 PINZ Ver 1.18: Add Get/SetParam CTFILT_SW |
2659 | ** | 2669 | ** |
2660 | ******************************************************************************/ | 2670 | ******************************************************************************/ |
2661 | u32 MT2063_ReInit(void *h) | 2671 | static u32 MT2063_ReInit(void *h) |
2662 | { | 2672 | { |
2663 | u8 all_resets = 0xF0; /* reset/load bits */ | 2673 | u8 all_resets = 0xF0; /* reset/load bits */ |
2664 | u32 status = MT2063_OK; /* Status to be returned */ | 2674 | u32 status = MT2063_OK; /* Status to be returned */ |
@@ -2793,7 +2803,7 @@ u32 MT2063_ReInit(void *h) | |||
2793 | s32 maxReads = 10; | 2803 | s32 maxReads = 10; |
2794 | while (MT2063_NO_ERROR(status) && (FCRUN != 0) | 2804 | while (MT2063_NO_ERROR(status) && (FCRUN != 0) |
2795 | && (maxReads-- > 0)) { | 2805 | && (maxReads-- > 0)) { |
2796 | MT2063_Sleep(pInfo->hUserData, 2); | 2806 | msleep(2); |
2797 | status |= MT2063_ReadSub(pInfo->hUserData, | 2807 | status |= MT2063_ReadSub(pInfo->hUserData, |
2798 | pInfo->address, | 2808 | pInfo->address, |
2799 | MT2063_REG_XO_STATUS, | 2809 | MT2063_REG_XO_STATUS, |
@@ -2947,7 +2957,7 @@ u32 MT2063_ReInit(void *h) | |||
2947 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 2957 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
2948 | ** | 2958 | ** |
2949 | ******************************************************************************/ | 2959 | ******************************************************************************/ |
2950 | u32 MT2063_SetGPIO(void *h, enum MT2063_GPIO_ID gpio_id, | 2960 | static u32 MT2063_SetGPIO(void *h, enum MT2063_GPIO_ID gpio_id, |
2951 | enum MT2063_GPIO_Attr attr, u32 value) | 2961 | enum MT2063_GPIO_Attr attr, u32 value) |
2952 | { | 2962 | { |
2953 | u32 status = MT2063_OK; /* Status to be returned */ | 2963 | u32 status = MT2063_OK; /* Status to be returned */ |
@@ -3057,7 +3067,7 @@ u32 MT2063_SetGPIO(void *h, enum MT2063_GPIO_ID gpio_id, | |||
3057 | ** 06-24-2008 PINZ Ver 1.18: Add Get/SetParam CTFILT_SW | 3067 | ** 06-24-2008 PINZ Ver 1.18: Add Get/SetParam CTFILT_SW |
3058 | ** | 3068 | ** |
3059 | ****************************************************************************/ | 3069 | ****************************************************************************/ |
3060 | u32 MT2063_SetParam(void *h, enum MT2063_Param param, u32 nValue) | 3070 | static u32 MT2063_SetParam(void *h, enum MT2063_Param param, u32 nValue) |
3061 | { | 3071 | { |
3062 | u32 status = MT2063_OK; /* Status to be returned */ | 3072 | u32 status = MT2063_OK; /* Status to be returned */ |
3063 | u8 val = 0; | 3073 | u8 val = 0; |
@@ -3677,7 +3687,7 @@ u32 MT2063_SetParam(void *h, enum MT2063_Param param, u32 nValue) | |||
3677 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 3687 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
3678 | ** | 3688 | ** |
3679 | ****************************************************************************/ | 3689 | ****************************************************************************/ |
3680 | u32 MT2063_SetPowerMaskBits(void *h, enum MT2063_Mask_Bits Bits) | 3690 | static u32 MT2063_SetPowerMaskBits(void *h, enum MT2063_Mask_Bits Bits) |
3681 | { | 3691 | { |
3682 | u32 status = MT2063_OK; /* Status to be returned */ | 3692 | u32 status = MT2063_OK; /* Status to be returned */ |
3683 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; | 3693 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; |
@@ -3734,7 +3744,7 @@ u32 MT2063_SetPowerMaskBits(void *h, enum MT2063_Mask_Bits Bits) | |||
3734 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 3744 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
3735 | ** | 3745 | ** |
3736 | ****************************************************************************/ | 3746 | ****************************************************************************/ |
3737 | u32 MT2063_ClearPowerMaskBits(void *h, enum MT2063_Mask_Bits Bits) | 3747 | static u32 MT2063_ClearPowerMaskBits(void *h, enum MT2063_Mask_Bits Bits) |
3738 | { | 3748 | { |
3739 | u32 status = MT2063_OK; /* Status to be returned */ | 3749 | u32 status = MT2063_OK; /* Status to be returned */ |
3740 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; | 3750 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; |
@@ -3790,7 +3800,7 @@ u32 MT2063_ClearPowerMaskBits(void *h, enum MT2063_Mask_Bits Bits) | |||
3790 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 3800 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
3791 | ** | 3801 | ** |
3792 | ****************************************************************************/ | 3802 | ****************************************************************************/ |
3793 | u32 MT2063_GetPowerMaskBits(void *h, enum MT2063_Mask_Bits * Bits) | 3803 | static u32 MT2063_GetPowerMaskBits(void *h, enum MT2063_Mask_Bits * Bits) |
3794 | { | 3804 | { |
3795 | u32 status = MT2063_OK; /* Status to be returned */ | 3805 | u32 status = MT2063_OK; /* Status to be returned */ |
3796 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; | 3806 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; |
@@ -3845,7 +3855,7 @@ u32 MT2063_GetPowerMaskBits(void *h, enum MT2063_Mask_Bits * Bits) | |||
3845 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 3855 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
3846 | ** | 3856 | ** |
3847 | ****************************************************************************/ | 3857 | ****************************************************************************/ |
3848 | u32 MT2063_EnableExternalShutdown(void *h, u8 Enabled) | 3858 | static u32 MT2063_EnableExternalShutdown(void *h, u8 Enabled) |
3849 | { | 3859 | { |
3850 | u32 status = MT2063_OK; /* Status to be returned */ | 3860 | u32 status = MT2063_OK; /* Status to be returned */ |
3851 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; | 3861 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; |
@@ -3896,7 +3906,7 @@ u32 MT2063_EnableExternalShutdown(void *h, u8 Enabled) | |||
3896 | ** correct wakeup of the LNA | 3906 | ** correct wakeup of the LNA |
3897 | ** | 3907 | ** |
3898 | ****************************************************************************/ | 3908 | ****************************************************************************/ |
3899 | u32 MT2063_SoftwareShutdown(void *h, u8 Shutdown) | 3909 | static u32 MT2063_SoftwareShutdown(void *h, u8 Shutdown) |
3900 | { | 3910 | { |
3901 | u32 status = MT2063_OK; /* Status to be returned */ | 3911 | u32 status = MT2063_OK; /* Status to be returned */ |
3902 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; | 3912 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; |
@@ -3968,7 +3978,7 @@ u32 MT2063_SoftwareShutdown(void *h, u8 Shutdown) | |||
3968 | ** 189 S 05-13-2008 RSK Ver 1.16: Correct location for ExtSRO control. | 3978 | ** 189 S 05-13-2008 RSK Ver 1.16: Correct location for ExtSRO control. |
3969 | ** | 3979 | ** |
3970 | ****************************************************************************/ | 3980 | ****************************************************************************/ |
3971 | u32 MT2063_SetExtSRO(void *h, enum MT2063_Ext_SRO Ext_SRO_Setting) | 3981 | static u32 MT2063_SetExtSRO(void *h, enum MT2063_Ext_SRO Ext_SRO_Setting) |
3972 | { | 3982 | { |
3973 | u32 status = MT2063_OK; /* Status to be returned */ | 3983 | u32 status = MT2063_OK; /* Status to be returned */ |
3974 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; | 3984 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; |
@@ -4018,7 +4028,7 @@ u32 MT2063_SetExtSRO(void *h, enum MT2063_Ext_SRO Ext_SRO_Setting) | |||
4018 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. | 4028 | ** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b. |
4019 | ** | 4029 | ** |
4020 | ****************************************************************************/ | 4030 | ****************************************************************************/ |
4021 | u32 MT2063_SetReg(void *h, u8 reg, u8 val) | 4031 | static u32 MT2063_SetReg(void *h, u8 reg, u8 val) |
4022 | { | 4032 | { |
4023 | u32 status = MT2063_OK; /* Status to be returned */ | 4033 | u32 status = MT2063_OK; /* Status to be returned */ |
4024 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; | 4034 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; |
@@ -4256,7 +4266,7 @@ static u32 FindClearTuneFilter(struct MT2063_Info_t *pInfo, u32 f_in) | |||
4256 | ** 06-24-2008 PINZ Ver 1.18: Add Get/SetParam CTFILT_SW | 4266 | ** 06-24-2008 PINZ Ver 1.18: Add Get/SetParam CTFILT_SW |
4257 | ** | 4267 | ** |
4258 | ****************************************************************************/ | 4268 | ****************************************************************************/ |
4259 | u32 MT2063_Tune(void *h, u32 f_in) | 4269 | static u32 MT2063_Tune(void *h, u32 f_in) |
4260 | { /* RF input center frequency */ | 4270 | { /* RF input center frequency */ |
4261 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; | 4271 | struct MT2063_Info_t *pInfo = (struct MT2063_Info_t *)h; |
4262 | 4272 | ||
@@ -4461,7 +4471,7 @@ u32 MT2063_Tune(void *h, u32 f_in) | |||
4461 | return (status); | 4471 | return (status); |
4462 | } | 4472 | } |
4463 | 4473 | ||
4464 | u32 MT_Tune_atv(void *h, u32 f_in, u32 bw_in, | 4474 | static u32 MT_Tune_atv(void *h, u32 f_in, u32 bw_in, |
4465 | enum MTTune_atv_standard tv_type) | 4475 | enum MTTune_atv_standard tv_type) |
4466 | { | 4476 | { |
4467 | 4477 | ||
@@ -4612,12 +4622,6 @@ static int mt2063_init(struct dvb_frontend *fe) | |||
4612 | return 0; | 4622 | return 0; |
4613 | } | 4623 | } |
4614 | 4624 | ||
4615 | static int mt2063_sleep(struct dvb_frontend *fe) | ||
4616 | { | ||
4617 | /* TODO: power down */ | ||
4618 | return 0; | ||
4619 | } | ||
4620 | |||
4621 | static int mt2063_get_status(struct dvb_frontend *fe, u32 * status) | 4625 | static int mt2063_get_status(struct dvb_frontend *fe, u32 * status) |
4622 | { | 4626 | { |
4623 | int rc = 0; | 4627 | int rc = 0; |
@@ -4720,7 +4724,7 @@ static struct dvb_tuner_ops mt2063_ops = { | |||
4720 | }, | 4724 | }, |
4721 | 4725 | ||
4722 | .init = mt2063_init, | 4726 | .init = mt2063_init, |
4723 | .sleep = mt2063_sleep, | 4727 | .sleep = MT2063_Sleep, |
4724 | .get_status = mt2063_get_status, | 4728 | .get_status = mt2063_get_status, |
4725 | .get_state = mt2063_get_state, | 4729 | .get_state = mt2063_get_state, |
4726 | .set_state = mt2063_set_state, | 4730 | .set_state = mt2063_set_state, |