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
e73be4a7
Commit
e73be4a7
authored
Jan 05, 2014
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'acpi-tpm' into acpi-dsm
parents
d6e0a2dd
df45c712
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
drivers/char/tpm/tpm_ppi.c
drivers/char/tpm/tpm_ppi.c
+9
-6
No files found.
drivers/char/tpm/tpm_ppi.c
View file @
e73be4a7
...
...
@@ -27,15 +27,18 @@ static char *tpm_device_name = "TPM";
static
acpi_status
ppi_callback
(
acpi_handle
handle
,
u32
level
,
void
*
context
,
void
**
return_value
)
{
acpi_status
status
;
acpi_status
status
=
AE_OK
;
struct
acpi_buffer
buffer
=
{
ACPI_ALLOCATE_BUFFER
,
NULL
};
status
=
acpi_get_name
(
handle
,
ACPI_FULL_PATHNAME
,
&
buffer
);
if
(
strstr
(
buffer
.
pointer
,
context
)
!=
NULL
)
{
*
return_value
=
handle
;
if
(
ACPI_SUCCESS
(
acpi_get_name
(
handle
,
ACPI_FULL_PATHNAME
,
&
buffer
)))
{
if
(
strstr
(
buffer
.
pointer
,
context
)
!=
NULL
)
{
*
return_value
=
handle
;
status
=
AE_CTRL_TERMINATE
;
}
kfree
(
buffer
.
pointer
);
return
AE_CTRL_TERMINATE
;
}
return
AE_OK
;
return
status
;
}
static
inline
void
ppi_assign_params
(
union
acpi_object
params
[
4
],
...
...
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