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
3e9c010c
Commit
3e9c010c
authored
Mar 09, 2003
by
Adam Belay
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Interface Changes
A few minor revisions. Simpifies a few commands and adds config mode information.
parent
1f11a02c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
drivers/pnp/interface.c
drivers/pnp/interface.c
+9
-2
No files found.
drivers/pnp/interface.c
View file @
3e9c010c
...
...
@@ -332,11 +332,18 @@ static ssize_t pnp_show_current_resources(struct device *dmdev, char *buf)
buffer
->
buffer
=
buf
;
buffer
->
curr
=
buffer
->
buffer
;
pnp_printf
(
buffer
,
"mode = "
);
if
(
dev
->
config_mode
&
PNP_CONFIG_MANUAL
)
pnp_printf
(
buffer
,
"manual
\n
"
);
else
pnp_printf
(
buffer
,
"auto
\n
"
);
pnp_printf
(
buffer
,
"state = "
);
if
(
dev
->
active
)
pnp_printf
(
buffer
,
"active
\n
"
);
else
pnp_printf
(
buffer
,
"disabled
\n
"
);
for
(
i
=
0
;
i
<
PNP_MAX_PORT
;
i
++
)
{
if
(
pnp_port_valid
(
dev
,
i
))
{
pnp_printf
(
buffer
,
"io"
);
...
...
@@ -402,13 +409,13 @@ pnp_set_current_resources(struct device * dmdev, const char * ubuf, size_t count
retval
=
pnp_activate_dev
(
dev
);
goto
done
;
}
if
(
!
strnicmp
(
buf
,
"auto
-config"
,
11
))
{
if
(
!
strnicmp
(
buf
,
"auto
"
,
4
))
{
if
(
dev
->
active
)
goto
done
;
retval
=
pnp_auto_config_dev
(
dev
);
goto
done
;
}
if
(
!
strnicmp
(
buf
,
"clear
-config"
,
12
))
{
if
(
!
strnicmp
(
buf
,
"clear
"
,
5
))
{
if
(
dev
->
active
)
goto
done
;
spin_lock
(
&
pnp_lock
);
...
...
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