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
96ee9c93
Commit
96ee9c93
authored
Nov 17, 2002
by
Art Haas
Committed by
David S. Miller
Nov 17, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] C99 initializers for drivers/pci
parent
45fd7086
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
28 deletions
+28
-28
drivers/pci/pci-driver.c
drivers/pci/pci-driver.c
+4
-4
drivers/pci/proc.c
drivers/pci/proc.c
+24
-24
No files found.
drivers/pci/pci-driver.c
View file @
96ee9c93
...
@@ -145,7 +145,7 @@ pci_unregister_driver(struct pci_driver *drv)
...
@@ -145,7 +145,7 @@ pci_unregister_driver(struct pci_driver *drv)
}
}
static
struct
pci_driver
pci_compat_driver
=
{
static
struct
pci_driver
pci_compat_driver
=
{
name:
"compat"
.
name
=
"compat"
};
};
/**
/**
...
@@ -200,9 +200,9 @@ static int pci_bus_match(struct device * dev, struct device_driver * drv)
...
@@ -200,9 +200,9 @@ static int pci_bus_match(struct device * dev, struct device_driver * drv)
}
}
struct
bus_type
pci_bus_type
=
{
struct
bus_type
pci_bus_type
=
{
name:
"pci"
,
.
name
=
"pci"
,
match:
pci_bus_match
,
.
match
=
pci_bus_match
,
hotplug:
pci_hotplug
,
.
hotplug
=
pci_hotplug
,
};
};
static
int
__init
pci_driver_init
(
void
)
static
int
__init
pci_driver_init
(
void
)
...
...
drivers/pci/proc.c
View file @
96ee9c93
...
@@ -285,16 +285,16 @@ static int proc_bus_pci_release(struct inode *inode, struct file *file)
...
@@ -285,16 +285,16 @@ static int proc_bus_pci_release(struct inode *inode, struct file *file)
#endif
/* HAVE_PCI_MMAP */
#endif
/* HAVE_PCI_MMAP */
static
struct
file_operations
proc_bus_pci_operations
=
{
static
struct
file_operations
proc_bus_pci_operations
=
{
llseek:
proc_bus_pci_lseek
,
.
llseek
=
proc_bus_pci_lseek
,
read:
proc_bus_pci_read
,
.
read
=
proc_bus_pci_read
,
write:
proc_bus_pci_write
,
.
write
=
proc_bus_pci_write
,
ioctl:
proc_bus_pci_ioctl
,
.
ioctl
=
proc_bus_pci_ioctl
,
#ifdef HAVE_PCI_MMAP
#ifdef HAVE_PCI_MMAP
open:
proc_bus_pci_open
,
.
open
=
proc_bus_pci_open
,
release:
proc_bus_pci_release
,
.
release
=
proc_bus_pci_release
,
mmap:
proc_bus_pci_mmap
,
.
mmap
=
proc_bus_pci_mmap
,
#ifdef HAVE_ARCH_PCI_GET_UNMAPPED_AREA
#ifdef HAVE_ARCH_PCI_GET_UNMAPPED_AREA
get_unmapped_area:
get_pci_unmapped_area
,
.
get_unmapped_area
=
get_pci_unmapped_area
,
#endif
/* HAVE_ARCH_PCI_GET_UNMAPPED_AREA */
#endif
/* HAVE_ARCH_PCI_GET_UNMAPPED_AREA */
#endif
/* HAVE_PCI_MMAP */
#endif
/* HAVE_PCI_MMAP */
};
};
...
@@ -365,10 +365,10 @@ static int show_device(struct seq_file *m, void *v)
...
@@ -365,10 +365,10 @@ static int show_device(struct seq_file *m, void *v)
}
}
static
struct
seq_operations
proc_bus_pci_devices_op
=
{
static
struct
seq_operations
proc_bus_pci_devices_op
=
{
start:
pci_seq_start
,
.
start
=
pci_seq_start
,
next:
pci_seq_next
,
.
next
=
pci_seq_next
,
stop:
pci_seq_stop
,
.
stop
=
pci_seq_stop
,
show:
show_device
.
show
=
show_device
};
};
struct
proc_dir_entry
*
proc_bus_pci_dir
;
struct
proc_dir_entry
*
proc_bus_pci_dir
;
...
@@ -567,10 +567,10 @@ static int show_dev_config(struct seq_file *m, void *v)
...
@@ -567,10 +567,10 @@ static int show_dev_config(struct seq_file *m, void *v)
}
}
static
struct
seq_operations
proc_pci_op
=
{
static
struct
seq_operations
proc_pci_op
=
{
start:
pci_seq_start
,
.
start
=
pci_seq_start
,
next:
pci_seq_next
,
.
next
=
pci_seq_next
,
stop:
pci_seq_stop
,
.
stop
=
pci_seq_stop
,
show:
show_dev_config
.
show
=
show_dev_config
};
};
static
int
proc_bus_pci_dev_open
(
struct
inode
*
inode
,
struct
file
*
file
)
static
int
proc_bus_pci_dev_open
(
struct
inode
*
inode
,
struct
file
*
file
)
...
@@ -578,20 +578,20 @@ static int proc_bus_pci_dev_open(struct inode *inode, struct file *file)
...
@@ -578,20 +578,20 @@ static int proc_bus_pci_dev_open(struct inode *inode, struct file *file)
return
seq_open
(
file
,
&
proc_bus_pci_devices_op
);
return
seq_open
(
file
,
&
proc_bus_pci_devices_op
);
}
}
static
struct
file_operations
proc_bus_pci_dev_operations
=
{
static
struct
file_operations
proc_bus_pci_dev_operations
=
{
open:
proc_bus_pci_dev_open
,
.
open
=
proc_bus_pci_dev_open
,
read:
seq_read
,
.
read
=
seq_read
,
llseek:
seq_lseek
,
.
llseek
=
seq_lseek
,
release:
seq_release
,
.
release
=
seq_release
,
};
};
static
int
proc_pci_open
(
struct
inode
*
inode
,
struct
file
*
file
)
static
int
proc_pci_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
{
return
seq_open
(
file
,
&
proc_pci_op
);
return
seq_open
(
file
,
&
proc_pci_op
);
}
}
static
struct
file_operations
proc_pci_operations
=
{
static
struct
file_operations
proc_pci_operations
=
{
open:
proc_pci_open
,
.
open
=
proc_pci_open
,
read:
seq_read
,
.
read
=
seq_read
,
llseek:
seq_lseek
,
.
llseek
=
seq_lseek
,
release:
seq_release
,
.
release
=
seq_release
,
};
};
static
int
__init
pci_proc_init
(
void
)
static
int
__init
pci_proc_init
(
void
)
...
...
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