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
ee705b46
Commit
ee705b46
authored
Aug 05, 2003
by
Adam Belay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PNP] Remove protocol_data from pnp_dev and pnp_card
This is not needed.
parent
57a29937
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
include/linux/pnp.h
include/linux/pnp.h
+0
-22
No files found.
include/linux/pnp.h
View file @
ee705b46
...
@@ -133,7 +133,6 @@ struct pnp_card {
...
@@ -133,7 +133,6 @@ struct pnp_card {
struct
pnp_protocol
*
protocol
;
struct
pnp_protocol
*
protocol
;
struct
pnp_id
*
id
;
/* contains supported EISA IDs*/
struct
pnp_id
*
id
;
/* contains supported EISA IDs*/
void
*
protocol_data
;
/* Used to store protocol specific data */
unsigned
char
pnpver
;
/* Plug & Play version */
unsigned
char
pnpver
;
/* Plug & Play version */
unsigned
char
productver
;
/* product version */
unsigned
char
productver
;
/* product version */
unsigned
int
serial
;
/* serial number */
unsigned
int
serial
;
/* serial number */
...
@@ -149,16 +148,6 @@ struct pnp_card {
...
@@ -149,16 +148,6 @@ struct pnp_card {
(card) != global_to_pnp_card(&pnp_cards); \
(card) != global_to_pnp_card(&pnp_cards); \
(card) = global_to_pnp_card((card)->global_list.next))
(card) = global_to_pnp_card((card)->global_list.next))
static
inline
void
*
pnp_get_card_protodata
(
struct
pnp_card
*
pcard
)
{
return
pcard
->
protocol_data
;
}
static
inline
void
pnp_set_card_protodata
(
struct
pnp_card
*
pcard
,
void
*
data
)
{
pcard
->
protocol_data
=
data
;
}
struct
pnp_card_link
{
struct
pnp_card_link
{
struct
pnp_card
*
card
;
struct
pnp_card
*
card
;
struct
pnp_card_driver
*
driver
;
struct
pnp_card_driver
*
driver
;
...
@@ -198,7 +187,6 @@ struct pnp_dev {
...
@@ -198,7 +187,6 @@ struct pnp_dev {
struct
pnp_option
*
dependent
;
struct
pnp_option
*
dependent
;
struct
pnp_resource_table
res
;
struct
pnp_resource_table
res
;
void
*
protocol_data
;
/* Used to store protocol specific data */
unsigned
short
regs
;
/* ISAPnP: supported registers */
unsigned
short
regs
;
/* ISAPnP: supported registers */
int
flags
;
/* used by protocols */
int
flags
;
/* used by protocols */
struct
proc_dir_entry
*
procent
;
/* device entry in /proc/bus/isapnp */
struct
proc_dir_entry
*
procent
;
/* device entry in /proc/bus/isapnp */
...
@@ -228,16 +216,6 @@ static inline void pnp_set_drvdata (struct pnp_dev *pdev, void *data)
...
@@ -228,16 +216,6 @@ static inline void pnp_set_drvdata (struct pnp_dev *pdev, void *data)
dev_set_drvdata
(
&
pdev
->
dev
,
data
);
dev_set_drvdata
(
&
pdev
->
dev
,
data
);
}
}
static
inline
void
*
pnp_get_protodata
(
struct
pnp_dev
*
pdev
)
{
return
pdev
->
protocol_data
;
}
static
inline
void
pnp_set_protodata
(
struct
pnp_dev
*
pdev
,
void
*
data
)
{
pdev
->
protocol_data
=
data
;
}
struct
pnp_fixup
{
struct
pnp_fixup
{
char
id
[
7
];
char
id
[
7
];
void
(
*
quirk_function
)(
struct
pnp_dev
*
dev
);
/* fixup function */
void
(
*
quirk_function
)(
struct
pnp_dev
*
dev
);
/* fixup function */
...
...
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