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
de15e20f
Commit
de15e20f
authored
Nov 19, 2020
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'acpi-fan'
* acpi-fan: ACPI: fan: Initialize performance state sysfs attribute
parents
4fba15fb
7dc7a8b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
drivers/acpi/fan.c
drivers/acpi/fan.c
+1
-0
No files found.
drivers/acpi/fan.c
View file @
de15e20f
...
@@ -352,6 +352,7 @@ static int acpi_fan_get_fps(struct acpi_device *device)
...
@@ -352,6 +352,7 @@ static int acpi_fan_get_fps(struct acpi_device *device)
struct
acpi_fan_fps
*
fps
=
&
fan
->
fps
[
i
];
struct
acpi_fan_fps
*
fps
=
&
fan
->
fps
[
i
];
snprintf
(
fps
->
name
,
ACPI_FPS_NAME_LEN
,
"state%d"
,
i
);
snprintf
(
fps
->
name
,
ACPI_FPS_NAME_LEN
,
"state%d"
,
i
);
sysfs_attr_init
(
&
fps
->
dev_attr
.
attr
);
fps
->
dev_attr
.
show
=
show_state
;
fps
->
dev_attr
.
show
=
show_state
;
fps
->
dev_attr
.
store
=
NULL
;
fps
->
dev_attr
.
store
=
NULL
;
fps
->
dev_attr
.
attr
.
name
=
fps
->
name
;
fps
->
dev_attr
.
attr
.
name
=
fps
->
name
;
...
...
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