Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
c6409468
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
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=
...
@@ -2175,7 +2175,7 @@ static const struct file_operations dv1394_fops=
* Export information about protocols/devices supported by this driver.
* Export information about protocols/devices supported by this driver.
*/
*/
#ifdef MODULE
#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
,
.
match_flags
=
IEEE1394_MATCH_SPECIFIER_ID
|
IEEE1394_MATCH_VERSION
,
.
specifier_id
=
AVC_UNIT_SPEC_ID_ENTRY
&
0xffffff
,
.
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)
...
@@ -438,7 +438,7 @@ static int eth1394_update(struct unit_directory *ud)
return
eth1394_new_node
(
hi
,
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
|
.
match_flags
=
(
IEEE1394_MATCH_SPECIFIER_ID
|
IEEE1394_MATCH_VERSION
),
IEEE1394_MATCH_VERSION
),
...
...
drivers/ieee1394/nodemgr.c
浏览文件 @
c6409468
...
@@ -484,7 +484,7 @@ static struct device_attribute *const fw_host_attrs[] = {
...
@@ -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
)
static
ssize_t
fw_show_drv_device_ids
(
struct
device_driver
*
drv
,
char
*
buf
)
{
{
struct
hpsb_protocol_driver
*
driver
;
struct
hpsb_protocol_driver
*
driver
;
struct
ieee1394_device_id
*
id
;
const
struct
ieee1394_device_id
*
id
;
int
length
=
0
;
int
length
=
0
;
char
*
scratch
=
buf
;
char
*
scratch
=
buf
;
...
@@ -658,7 +658,7 @@ static int nodemgr_bus_match(struct device * dev, struct device_driver * drv)
...
@@ -658,7 +658,7 @@ static int nodemgr_bus_match(struct device * dev, struct device_driver * drv)
{
{
struct
hpsb_protocol_driver
*
driver
;
struct
hpsb_protocol_driver
*
driver
;
struct
unit_directory
*
ud
;
struct
unit_directory
*
ud
;
struct
ieee1394_device_id
*
id
;
const
struct
ieee1394_device_id
*
id
;
/* We only match unit directories */
/* We only match unit directories */
if
(
dev
->
platform_data
!=
&
nodemgr_ud_platform_data
)
if
(
dev
->
platform_data
!=
&
nodemgr_ud_platform_data
)
...
...
drivers/ieee1394/nodemgr.h
浏览文件 @
c6409468
...
@@ -125,7 +125,7 @@ struct hpsb_protocol_driver {
...
@@ -125,7 +125,7 @@ struct hpsb_protocol_driver {
* probe function below can implement further protocol
* probe function below can implement further protocol
* dependent or vendor dependent checking.
* 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
* 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)
...
@@ -2982,7 +2982,7 @@ static int raw1394_release(struct inode *inode, struct file *file)
* Export information about protocols/devices supported by this driver.
* Export information about protocols/devices supported by this driver.
*/
*/
#ifdef MODULE
#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
,
.
match_flags
=
IEEE1394_MATCH_SPECIFIER_ID
|
IEEE1394_MATCH_VERSION
,
.
specifier_id
=
AVC_UNIT_SPEC_ID_ENTRY
&
0xffffff
,
.
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 = {
...
@@ -285,7 +285,7 @@ static const struct hpsb_address_ops sbp2_physdma_ops = {
/*
/*
* Interface to driver core and IEEE 1394 core
* 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
,
.
match_flags
=
IEEE1394_MATCH_SPECIFIER_ID
|
IEEE1394_MATCH_VERSION
,
.
specifier_id
=
SBP2_UNIT_SPEC_ID_ENTRY
&
0xffffff
,
.
specifier_id
=
SBP2_UNIT_SPEC_ID_ENTRY
&
0xffffff
,
...
...
drivers/ieee1394/video1394.c
浏览文件 @
c6409468
...
@@ -1294,7 +1294,7 @@ static const struct file_operations video1394_fops=
...
@@ -1294,7 +1294,7 @@ static const struct file_operations video1394_fops=
* Export information about protocols/devices supported by this driver.
* Export information about protocols/devices supported by this driver.
*/
*/
#ifdef MODULE
#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
,
.
match_flags
=
IEEE1394_MATCH_SPECIFIER_ID
|
IEEE1394_MATCH_VERSION
,
.
specifier_id
=
CAMERA_UNIT_SPEC_ID_ENTRY
&
0xffffff
,
.
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录