Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gsplhtlxg
clone-Linux
提交
c6409468
C
clone-Linux
项目概览
gsplhtlxg
/
clone-Linux
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
clone-Linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c6409468
编写于
2月 15, 2009
作者:
S
Stefan Richter
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ieee1394: constify device ID tables
Signed-off-by:
N
Stefan Richter
<
stefanr@s5r6.in-berlin.de
>
上级
42169688
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
8 addition
and
8 deletion
+8
-8
drivers/ieee1394/dv1394.c
drivers/ieee1394/dv1394.c
+1
-1
drivers/ieee1394/eth1394.c
drivers/ieee1394/eth1394.c
+1
-1
drivers/ieee1394/nodemgr.c
drivers/ieee1394/nodemgr.c
+2
-2
drivers/ieee1394/nodemgr.h
drivers/ieee1394/nodemgr.h
+1
-1
drivers/ieee1394/raw1394.c
drivers/ieee1394/raw1394.c
+1
-1
drivers/ieee1394/sbp2.c
drivers/ieee1394/sbp2.c
+1
-1
drivers/ieee1394/video1394.c
drivers/ieee1394/video1394.c
+1
-1
未找到文件。
drivers/ieee1394/dv1394.c
浏览文件 @
c6409468
...
...
@@ -2175,7 +2175,7 @@ static const struct file_operations dv1394_fops=
* Export information about protocols/devices supported by this driver.
*/
#ifdef MODULE
static
struct
ieee1394_device_id
dv1394_id_table
[]
=
{
static
const
struct
ieee1394_device_id
dv1394_id_table
[]
=
{
{
.
match_flags
=
IEEE1394_MATCH_SPECIFIER_ID
|
IEEE1394_MATCH_VERSION
,
.
specifier_id
=
AVC_UNIT_SPEC_ID_ENTRY
&
0xffffff
,
...
...
drivers/ieee1394/eth1394.c
浏览文件 @
c6409468
...
...
@@ -438,7 +438,7 @@ static int eth1394_update(struct unit_directory *ud)
return
eth1394_new_node
(
hi
,
ud
);
}
static
struct
ieee1394_device_id
eth1394_id_table
[]
=
{
static
const
struct
ieee1394_device_id
eth1394_id_table
[]
=
{
{
.
match_flags
=
(
IEEE1394_MATCH_SPECIFIER_ID
|
IEEE1394_MATCH_VERSION
),
...
...
drivers/ieee1394/nodemgr.c
浏览文件 @
c6409468
...
...
@@ -484,7 +484,7 @@ static struct device_attribute *const fw_host_attrs[] = {
static
ssize_t
fw_show_drv_device_ids
(
struct
device_driver
*
drv
,
char
*
buf
)
{
struct
hpsb_protocol_driver
*
driver
;
struct
ieee1394_device_id
*
id
;
const
struct
ieee1394_device_id
*
id
;
int
length
=
0
;
char
*
scratch
=
buf
;
...
...
@@ -658,7 +658,7 @@ static int nodemgr_bus_match(struct device * dev, struct device_driver * drv)
{
struct
hpsb_protocol_driver
*
driver
;
struct
unit_directory
*
ud
;
struct
ieee1394_device_id
*
id
;
const
struct
ieee1394_device_id
*
id
;
/* We only match unit directories */
if
(
dev
->
platform_data
!=
&
nodemgr_ud_platform_data
)
...
...
drivers/ieee1394/nodemgr.h
浏览文件 @
c6409468
...
...
@@ -125,7 +125,7 @@ struct hpsb_protocol_driver {
* probe function below can implement further protocol
* dependent or vendor dependent checking.
*/
struct
ieee1394_device_id
*
id_table
;
const
struct
ieee1394_device_id
*
id_table
;
/*
* The update function is called when the node has just
...
...
drivers/ieee1394/raw1394.c
浏览文件 @
c6409468
...
...
@@ -2982,7 +2982,7 @@ static int raw1394_release(struct inode *inode, struct file *file)
* Export information about protocols/devices supported by this driver.
*/
#ifdef MODULE
static
struct
ieee1394_device_id
raw1394_id_table
[]
=
{
static
const
struct
ieee1394_device_id
raw1394_id_table
[]
=
{
{
.
match_flags
=
IEEE1394_MATCH_SPECIFIER_ID
|
IEEE1394_MATCH_VERSION
,
.
specifier_id
=
AVC_UNIT_SPEC_ID_ENTRY
&
0xffffff
,
...
...
drivers/ieee1394/sbp2.c
浏览文件 @
c6409468
...
...
@@ -285,7 +285,7 @@ static const struct hpsb_address_ops sbp2_physdma_ops = {
/*
* Interface to driver core and IEEE 1394 core
*/
static
struct
ieee1394_device_id
sbp2_id_table
[]
=
{
static
const
struct
ieee1394_device_id
sbp2_id_table
[]
=
{
{
.
match_flags
=
IEEE1394_MATCH_SPECIFIER_ID
|
IEEE1394_MATCH_VERSION
,
.
specifier_id
=
SBP2_UNIT_SPEC_ID_ENTRY
&
0xffffff
,
...
...
drivers/ieee1394/video1394.c
浏览文件 @
c6409468
...
...
@@ -1294,7 +1294,7 @@ static const struct file_operations video1394_fops=
* Export information about protocols/devices supported by this driver.
*/
#ifdef MODULE
static
struct
ieee1394_device_id
video1394_id_table
[]
=
{
static
const
struct
ieee1394_device_id
video1394_id_table
[]
=
{
{
.
match_flags
=
IEEE1394_MATCH_SPECIFIER_ID
|
IEEE1394_MATCH_VERSION
,
.
specifier_id
=
CAMERA_UNIT_SPEC_ID_ENTRY
&
0xffffff
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录