Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
c6409468
Commit
c6409468
authored
Feb 15, 2009
by
Stefan Richter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieee1394: constify device ID tables
Signed-off-by:
Stefan Richter
<
stefanr@s5r6.in-berlin.de
>
parent
42169688
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
8 deletions
+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
No files found.
drivers/ieee1394/dv1394.c
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
View file @
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment