Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
bc179153
K
Kernel
项目概览
openeuler
/
Kernel
大约 1 年 前同步成功
通知
5
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bc179153
编写于
5月 24, 2008
作者:
D
David Woodhouse
提交者:
David Woodhouse
7月 10, 2008
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
dvb frontends: treat firmware data as const
Signed-off-by:
N
David Woodhouse
<
dwmw2@infradead.org
>
上级
99b6e4f5
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
11 addition
and
9 deletion
+11
-9
drivers/media/dvb/frontends/bcm3510.c
drivers/media/dvb/frontends/bcm3510.c
+3
-2
drivers/media/dvb/frontends/nxt200x.c
drivers/media/dvb/frontends/nxt200x.c
+2
-1
drivers/media/dvb/frontends/or51211.c
drivers/media/dvb/frontends/or51211.c
+2
-2
drivers/media/dvb/frontends/sp8870.c
drivers/media/dvb/frontends/sp8870.c
+1
-1
drivers/media/dvb/frontends/sp887x.c
drivers/media/dvb/frontends/sp887x.c
+1
-1
drivers/media/dvb/frontends/tda10048.c
drivers/media/dvb/frontends/tda10048.c
+1
-1
drivers/media/dvb/frontends/tda1004x.c
drivers/media/dvb/frontends/tda1004x.c
+1
-1
未找到文件。
drivers/media/dvb/frontends/bcm3510.c
浏览文件 @
bc179153
...
...
@@ -590,7 +590,8 @@ static void bcm3510_release(struct dvb_frontend* fe)
*/
#define BCM3510_DEFAULT_FIRMWARE "dvb-fe-bcm3510-01.fw"
static
int
bcm3510_write_ram
(
struct
bcm3510_state
*
st
,
u16
addr
,
u8
*
b
,
u16
len
)
static
int
bcm3510_write_ram
(
struct
bcm3510_state
*
st
,
u16
addr
,
const
u8
*
b
,
u16
len
)
{
int
ret
=
0
,
i
;
bcm3510_register_value
vH
,
vL
,
vD
;
...
...
@@ -614,7 +615,7 @@ static int bcm3510_download_firmware(struct dvb_frontend* fe)
struct
bcm3510_state
*
st
=
fe
->
demodulator_priv
;
const
struct
firmware
*
fw
;
u16
addr
,
len
;
u8
*
b
;
const
u8
*
b
;
int
ret
,
i
;
deb_info
(
"requesting firmware
\n
"
);
...
...
drivers/media/dvb/frontends/nxt200x.c
浏览文件 @
bc179153
...
...
@@ -93,7 +93,8 @@ static u8 i2c_readbytes (struct nxt200x_state* state, u8 addr, u8* buf, u8 len)
return
0
;
}
static
int
nxt200x_writebytes
(
struct
nxt200x_state
*
state
,
u8
reg
,
u8
*
buf
,
u8
len
)
static
int
nxt200x_writebytes
(
struct
nxt200x_state
*
state
,
u8
reg
,
const
u8
*
buf
,
u8
len
)
{
u8
buf2
[
len
+
1
];
int
err
;
...
...
drivers/media/dvb/frontends/or51211.c
浏览文件 @
bc179153
...
...
@@ -69,7 +69,7 @@ struct or51211_state {
u32
current_frequency
;
};
static
int
i2c_writebytes
(
struct
or51211_state
*
state
,
u8
reg
,
u8
*
buf
,
static
int
i2c_writebytes
(
struct
or51211_state
*
state
,
u8
reg
,
const
u8
*
buf
,
int
len
)
{
int
err
;
...
...
@@ -77,7 +77,7 @@ static int i2c_writebytes (struct or51211_state* state, u8 reg, u8 *buf,
msg
.
addr
=
reg
;
msg
.
flags
=
0
;
msg
.
len
=
len
;
msg
.
buf
=
buf
;
msg
.
buf
=
(
u8
*
)
buf
;
if
((
err
=
i2c_transfer
(
state
->
i2c
,
&
msg
,
1
))
!=
1
)
{
printk
(
KERN_WARNING
"or51211: i2c_writebytes error "
...
...
drivers/media/dvb/frontends/sp8870.c
浏览文件 @
bc179153
...
...
@@ -98,7 +98,7 @@ static int sp8870_readreg (struct sp8870_state* state, u16 reg)
static
int
sp8870_firmware_upload
(
struct
sp8870_state
*
state
,
const
struct
firmware
*
fw
)
{
struct
i2c_msg
msg
;
char
*
fw_buf
=
fw
->
data
;
c
onst
c
har
*
fw_buf
=
fw
->
data
;
int
fw_pos
;
u8
tx_buf
[
255
];
int
tx_len
;
...
...
drivers/media/dvb/frontends/sp887x.c
浏览文件 @
bc179153
...
...
@@ -140,7 +140,7 @@ static int sp887x_initial_setup (struct dvb_frontend* fe, const struct firmware
u8
buf
[
BLOCKSIZE
+
2
];
int
i
;
int
fw_size
=
fw
->
size
;
unsigned
char
*
mem
=
fw
->
data
;
const
unsigned
char
*
mem
=
fw
->
data
;
dprintk
(
"%s
\n
"
,
__func__
);
...
...
drivers/media/dvb/frontends/tda10048.c
浏览文件 @
bc179153
...
...
@@ -233,7 +233,7 @@ static u8 tda10048_readreg(struct tda10048_state *state, u8 reg)
}
static
int
tda10048_writeregbulk
(
struct
tda10048_state
*
state
,
u8
reg
,
u8
*
data
,
u16
len
)
const
u8
*
data
,
u16
len
)
{
int
ret
=
-
EREMOTEIO
;
struct
i2c_msg
msg
;
...
...
drivers/media/dvb/frontends/tda1004x.c
浏览文件 @
bc179153
...
...
@@ -317,7 +317,7 @@ static int tda10046h_set_bandwidth(struct tda1004x_state *state,
}
static
int
tda1004x_do_upload
(
struct
tda1004x_state
*
state
,
unsigned
char
*
mem
,
unsigned
int
len
,
const
unsigned
char
*
mem
,
unsigned
int
len
,
u8
dspCodeCounterReg
,
u8
dspCodeInReg
)
{
u8
buf
[
65
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录