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
nexedi
linux
Commits
412f39a5
Commit
412f39a5
authored
Nov 29, 2002
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PCI: changed pci_?et_drvdata to use the generic driver model functions
instead of accessing the data directly.
parent
19652e26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
include/linux/pci.h
include/linux/pci.h
+4
-4
No files found.
include/linux/pci.h
View file @
412f39a5
...
...
@@ -747,17 +747,17 @@ static inline int pci_module_init(struct pci_driver *drv)
pci_resource_start((dev),(bar)) + 1))
/* Similar to the helpers above, these manipulate per-pci_dev
* driver-specific data.
Currently stored as pci_dev::driver_data,
*
a void pointer, but it is not present on older kerne
ls.
* driver-specific data.
They are really just a wrapper around
*
the generic device structure functions of these cal
ls.
*/
static
inline
void
*
pci_get_drvdata
(
struct
pci_dev
*
pdev
)
{
return
pdev
->
dev
.
driver_data
;
return
dev_get_drvdata
(
&
pdev
->
dev
)
;
}
static
inline
void
pci_set_drvdata
(
struct
pci_dev
*
pdev
,
void
*
data
)
{
pdev
->
dev
.
driver_data
=
data
;
dev_set_drvdata
(
&
pdev
->
dev
,
data
)
;
}
/*
...
...
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