Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
f867695a
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
f867695a
编写于
7月 20, 2011
作者:
M
Mauro Carvalho Chehab
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[media] mt2063: get rid of compilation warnings
Signed-off-by:
N
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
上级
059cd82d
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
24 addition
and
22 deletion
+24
-22
drivers/media/common/tuners/mt2063.c
drivers/media/common/tuners/mt2063.c
+14
-21
drivers/media/common/tuners/mt2063.h
drivers/media/common/tuners/mt2063.h
+10
-1
未找到文件。
drivers/media/common/tuners/mt2063.c
浏览文件 @
f867695a
...
...
@@ -26,7 +26,7 @@ static u32 MT2063_SetParam(void *h, enum MT2063_Param param, u32 nValue);
/*****************/
/* From drivers/media/common/tuners/mt2063_cfg.h */
static
unsigned
int
mt2063_setTune
(
struct
dvb_frontend
*
fe
,
u32
f_in
,
unsigned
int
mt2063_setTune
(
struct
dvb_frontend
*
fe
,
u32
f_in
,
u32
bw_in
,
enum
MTTune_atv_standard
tv_type
)
{
...
...
@@ -57,7 +57,7 @@ static unsigned int mt2063_setTune(struct dvb_frontend *fe, u32 f_in,
return
err
;
}
static
unsigned
int
mt2063_lockStatus
(
struct
dvb_frontend
*
fe
)
unsigned
int
mt2063_lockStatus
(
struct
dvb_frontend
*
fe
)
{
struct
dvb_frontend_ops
*
frontend_ops
=
&
fe
->
ops
;
struct
dvb_tuner_ops
*
tuner_ops
=
&
frontend_ops
->
tuner_ops
;
...
...
@@ -79,7 +79,7 @@ static unsigned int mt2063_lockStatus(struct dvb_frontend *fe)
return
err
;
}
static
unsigned
int
tuner_MT2063_Open
(
struct
dvb_frontend
*
fe
)
unsigned
int
tuner_MT2063_Open
(
struct
dvb_frontend
*
fe
)
{
struct
dvb_frontend_ops
*
frontend_ops
=
&
fe
->
ops
;
struct
dvb_tuner_ops
*
tuner_ops
=
&
frontend_ops
->
tuner_ops
;
...
...
@@ -102,7 +102,7 @@ static unsigned int tuner_MT2063_Open(struct dvb_frontend *fe)
return
err
;
}
static
unsigned
int
tuner_MT2063_SoftwareShutdown
(
struct
dvb_frontend
*
fe
)
unsigned
int
tuner_MT2063_SoftwareShutdown
(
struct
dvb_frontend
*
fe
)
{
struct
dvb_frontend_ops
*
frontend_ops
=
&
fe
->
ops
;
struct
dvb_tuner_ops
*
tuner_ops
=
&
frontend_ops
->
tuner_ops
;
...
...
@@ -125,7 +125,7 @@ static unsigned int tuner_MT2063_SoftwareShutdown(struct dvb_frontend *fe)
return
err
;
}
static
unsigned
int
tuner_MT2063_ClearPowerMaskBits
(
struct
dvb_frontend
*
fe
)
unsigned
int
tuner_MT2063_ClearPowerMaskBits
(
struct
dvb_frontend
*
fe
)
{
struct
dvb_frontend_ops
*
frontend_ops
=
&
fe
->
ops
;
struct
dvb_tuner_ops
*
tuner_ops
=
&
frontend_ops
->
tuner_ops
;
...
...
@@ -357,13 +357,15 @@ static u32 MT2063_ReadSub(void *hUserData,
** N/A 03-25-2004 DAD Original
**
*****************************************************************************/
static
void
MT2063_Sleep
(
void
*
hUserData
,
u32
nMinDelayTim
e
)
static
int
MT2063_Sleep
(
struct
dvb_frontend
*
f
e
)
{
/*
** ToDo: Add code here to implement a OS blocking
** for a period of "nMinDelayTime" milliseconds.
*/
msleep
(
nMinDelayTime
);
msleep
(
10
);
return
0
;
}
//end of mt2063_userdef.c
...
...
@@ -467,10 +469,7 @@ static u32 MT2063_RegisterTuner(struct MT2063_AvoidSpursData_t *pAS_Info)
static
void
MT2063_UnRegisterTuner
(
struct
MT2063_AvoidSpursData_t
*
pAS_Info
)
{
#if MT2063_TUNER_CNT == 1
pAS_Info
;
#else
#if MT2063_TUNER_CNT > 1
u32
index
;
for
(
index
=
0
;
index
<
TunerCount
;
index
++
)
{
...
...
@@ -1507,10 +1506,9 @@ static u32 MT2063_fLO_FractionalTerm(u32 f_ref, u32 num,
** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.
**
******************************************************************************/
static
u32
MT2063_Open
(
u32
MT2063_Addr
,
void
**
hMT2063
,
void
*
hUserData
)
static
u32
MT2063_Open
(
u32
MT2063_Addr
,
struct
MT2063_Info_t
**
hMT2063
,
void
*
hUserData
)
{
u32
status
=
MT2063_OK
;
/* Status to be returned. */
s32
i
;
struct
MT2063_Info_t
*
pInfo
=
NULL
;
struct
dvb_frontend
*
fe
=
(
struct
dvb_frontend
*
)
hUserData
;
struct
mt2063_state
*
state
=
fe
->
tuner_priv
;
...
...
@@ -2432,7 +2430,7 @@ static u32 MT2063_ReInit(void *h)
u8
all_resets
=
0xF0
;
/* reset/load bits */
u32
status
=
MT2063_OK
;
/* Status to be returned */
struct
MT2063_Info_t
*
pInfo
=
(
struct
MT2063_Info_t
*
)
h
;
u8
*
def
;
u8
*
def
=
NULL
;
u8
MT2063B0_defaults
[]
=
{
/* Reg, Value */
0x19
,
0x05
,
...
...
@@ -3391,10 +3389,9 @@ static u32 MT2063_SetParam(void *h, enum MT2063_Param param, u32 nValue)
** 138 06-19-2007 DAD Ver 1.00: Initial, derived from mt2067_b.
**
****************************************************************************/
static
u32
MT2063_ClearPowerMaskBits
(
void
*
h
,
enum
MT2063_Mask_Bits
Bits
)
static
u32
MT2063_ClearPowerMaskBits
(
struct
MT2063_Info_t
*
pInfo
,
enum
MT2063_Mask_Bits
Bits
)
{
u32
status
=
MT2063_OK
;
/* Status to be returned */
struct
MT2063_Info_t
*
pInfo
=
(
struct
MT2063_Info_t
*
)
h
;
/* Verify that the handle passed points to a valid tuner */
if
(
MT2063_IsValidHandle
(
pInfo
)
==
0
)
...
...
@@ -3448,10 +3445,9 @@ static u32 MT2063_ClearPowerMaskBits(void *h, enum MT2063_Mask_Bits Bits)
** correct wakeup of the LNA
**
****************************************************************************/
static
u32
MT2063_SoftwareShutdown
(
void
*
h
,
u8
Shutdown
)
static
u32
MT2063_SoftwareShutdown
(
struct
MT2063_Info_t
*
pInfo
,
u8
Shutdown
)
{
u32
status
=
MT2063_OK
;
/* Status to be returned */
struct
MT2063_Info_t
*
pInfo
=
(
struct
MT2063_Info_t
*
)
h
;
/* Verify that the handle passed points to a valid tuner */
if
(
MT2063_IsValidHandle
(
pInfo
)
==
0
)
{
...
...
@@ -3964,9 +3960,6 @@ static u32 MT_Tune_atv(void *h, u32 f_in, u32 bw_in,
{
u32
status
=
MT2063_OK
;
struct
MT2063_Info_t
*
pInfo
=
(
struct
MT2063_Info_t
*
)
h
;
struct
dvb_frontend
*
fe
=
(
struct
dvb_frontend
*
)
pInfo
->
hUserData
;
struct
mt2063_state
*
state
=
fe
->
tuner_priv
;
s32
pict_car
=
0
;
s32
pict2chanb_vsb
=
0
;
...
...
drivers/media/common/tuners/mt2063.h
浏览文件 @
f867695a
...
...
@@ -524,7 +524,7 @@ struct mt2063_state {
struct
dvb_tuner_ops
ops
;
struct
dvb_frontend
*
frontend
;
struct
tuner_state
status
;
const
struct
MT2063_Info_t
*
MT2063_ht
;
struct
MT2063_Info_t
*
MT2063_ht
;
bool
MT2063_init
;
enum
MTTune_atv_standard
tv_type
;
...
...
@@ -549,6 +549,15 @@ static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe,
return
NULL
;
}
unsigned
int
mt2063_setTune
(
struct
dvb_frontend
*
fe
,
u32
f_in
,
u32
bw_in
,
enum
MTTune_atv_standard
tv_type
);
unsigned
int
mt2063_lockStatus
(
struct
dvb_frontend
*
fe
);
unsigned
int
tuner_MT2063_Open
(
struct
dvb_frontend
*
fe
);
unsigned
int
tuner_MT2063_SoftwareShutdown
(
struct
dvb_frontend
*
fe
);
unsigned
int
tuner_MT2063_ClearPowerMaskBits
(
struct
dvb_frontend
*
fe
);
#endif
/* CONFIG_DVB_MT2063 */
#endif
/* __MT2063_H__ */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录