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
4b8d028a
Commit
4b8d028a
authored
Jan 12, 2003
by
Patrick Mochel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sysfs: reinstate count parameter for PNP store() methods.
parent
72a1e8c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
drivers/pnp/interface.c
drivers/pnp/interface.c
+2
-2
No files found.
drivers/pnp/interface.c
View file @
4b8d028a
...
@@ -284,7 +284,7 @@ static ssize_t pnp_show_current_resources(struct device *dmdev, char *buf)
...
@@ -284,7 +284,7 @@ static ssize_t pnp_show_current_resources(struct device *dmdev, char *buf)
}
}
static
ssize_t
static
ssize_t
pnp_set_current_resources
(
struct
device
*
dmdev
,
const
char
*
buf
)
pnp_set_current_resources
(
struct
device
*
dmdev
,
const
char
*
buf
,
size_t
count
)
{
{
struct
pnp_dev
*
dev
=
to_pnp_dev
(
dmdev
);
struct
pnp_dev
*
dev
=
to_pnp_dev
(
dmdev
);
char
command
[
20
];
char
command
[
20
];
...
@@ -326,7 +326,7 @@ pnp_set_current_resources(struct device * dmdev, const char * buf)
...
@@ -326,7 +326,7 @@ pnp_set_current_resources(struct device * dmdev, const char * buf)
goto
done
;
goto
done
;
}
}
done:
done:
return
error
<
0
?
error
:
strlen
(
buf
)
;
return
error
<
0
?
error
:
count
;
}
}
static
DEVICE_ATTR
(
resources
,
S_IRUGO
|
S_IWUSR
,
static
DEVICE_ATTR
(
resources
,
S_IRUGO
|
S_IWUSR
,
...
...
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