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
9c33eef8
Commit
9c33eef8
authored
Dec 14, 2021
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge back int340x driver material for 5.17.
parents
f872f736
764cedc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
24 deletions
+29
-24
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c
+3
-2
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h
+26
-22
No files found.
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c
View file @
9c33eef8
...
...
@@ -250,8 +250,9 @@ static int fill_art(char __user *ubuf)
get_single_name
(
arts
[
i
].
source
,
art_user
[
i
].
source_device
);
get_single_name
(
arts
[
i
].
target
,
art_user
[
i
].
target_device
);
/* copy the rest int data in addition to source and target */
memcpy
(
&
art_user
[
i
].
weight
,
&
arts
[
i
].
weight
,
sizeof
(
u64
)
*
(
ACPI_NR_ART_ELEMENTS
-
2
));
BUILD_BUG_ON
(
sizeof
(
art_user
[
i
].
data
)
!=
sizeof
(
u64
)
*
(
ACPI_NR_ART_ELEMENTS
-
2
));
memcpy
(
&
art_user
[
i
].
data
,
&
arts
[
i
].
data
,
sizeof
(
art_user
[
i
].
data
));
}
if
(
copy_to_user
(
ubuf
,
art_user
,
art_len
))
...
...
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h
View file @
9c33eef8
...
...
@@ -17,17 +17,19 @@
struct
art
{
acpi_handle
source
;
acpi_handle
target
;
u64
weight
;
u64
ac0_max
;
u64
ac1_max
;
u64
ac2_max
;
u64
ac3_max
;
u64
ac4_max
;
u64
ac5_max
;
u64
ac6_max
;
u64
ac7_max
;
u64
ac8_max
;
u64
ac9_max
;
struct_group
(
data
,
u64
weight
;
u64
ac0_max
;
u64
ac1_max
;
u64
ac2_max
;
u64
ac3_max
;
u64
ac4_max
;
u64
ac5_max
;
u64
ac6_max
;
u64
ac7_max
;
u64
ac8_max
;
u64
ac9_max
;
);
}
__packed
;
struct
trt
{
...
...
@@ -47,17 +49,19 @@ union art_object {
struct
{
char
source_device
[
8
];
/* ACPI single name */
char
target_device
[
8
];
/* ACPI single name */
u64
weight
;
u64
ac0_max_level
;
u64
ac1_max_level
;
u64
ac2_max_level
;
u64
ac3_max_level
;
u64
ac4_max_level
;
u64
ac5_max_level
;
u64
ac6_max_level
;
u64
ac7_max_level
;
u64
ac8_max_level
;
u64
ac9_max_level
;
struct_group
(
data
,
u64
weight
;
u64
ac0_max_level
;
u64
ac1_max_level
;
u64
ac2_max_level
;
u64
ac3_max_level
;
u64
ac4_max_level
;
u64
ac5_max_level
;
u64
ac6_max_level
;
u64
ac7_max_level
;
u64
ac8_max_level
;
u64
ac9_max_level
;
);
};
u64
__data
[
ACPI_NR_ART_ELEMENTS
];
};
...
...
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