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
e3e9c776
Commit
e3e9c776
authored
Aug 26, 2002
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add class_data field to struct device, for the class drivers to use.
parent
e90477dd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
include/linux/device.h
include/linux/device.h
+3
-1
No files found.
include/linux/device.h
View file @
e3e9c776
...
@@ -65,7 +65,7 @@ struct bus_type {
...
@@ -65,7 +65,7 @@ struct bus_type {
struct
driver_dir_entry
device_dir
;
struct
driver_dir_entry
device_dir
;
struct
driver_dir_entry
driver_dir
;
struct
driver_dir_entry
driver_dir
;
int
(
*
match
)
(
struct
device
*
dev
,
struct
device_driver
*
drv
);
int
(
*
match
)
(
struct
device
*
dev
,
struct
device_driver
*
drv
);
};
};
...
@@ -281,6 +281,8 @@ struct device {
...
@@ -281,6 +281,8 @@ struct device {
void
*
driver_data
;
/* data private to the driver */
void
*
driver_data
;
/* data private to the driver */
u32
class_num
;
/* class-enumerated value */
u32
class_num
;
/* class-enumerated value */
void
*
class_data
;
/* class-specific data */
void
*
platform_data
;
/* Platform specific data (e.g. ACPI,
void
*
platform_data
;
/* Platform specific data (e.g. ACPI,
BIOS data relevant to device) */
BIOS data relevant to device) */
...
...
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