projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e8ac96
)
eeepc-laptop: convert acpi_evaluate_object() to acpi_execute_simple_method()
author
Zhang Rui
<
[email protected]
>
Tue, 3 Sep 2013 00:31:51 +0000
(08:31 +0800)
committer
Rafael J. Wysocki
<
[email protected]
>
Mon, 23 Sep 2013 23:37:54 +0000
(
01:37
+0200)
acpi_execute_simple_method() is a new ACPI API introduced to invoke
an ACPI control method that has single integer parameter and no return value.
Convert acpi_evaluate_object() to acpi_execute_simple_method()
in drivers/platform/x86/eeepc-laptop.c
Signed-off-by: Zhang Rui <
[email protected]
>
CC: Matthew Garrett <
[email protected]
>
CC: Corentin Chary <
[email protected]
>
Signed-off-by: Rafael J. Wysocki <
[email protected]
>
drivers/platform/x86/eeepc-laptop.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/eeepc-laptop.c
b/drivers/platform/x86/eeepc-laptop.c
index a6afd4108beb0592c15604efa9f779180d5349ef..aefcc32e563479d2b22404fdd75ceb7072423d16 100644
(file)
--- a/
drivers/platform/x86/eeepc-laptop.c
+++ b/
drivers/platform/x86/eeepc-laptop.c
@@
-190,16
+190,10
@@
struct eeepc_laptop {
*/
static int write_acpi_int(acpi_handle handle, const char *method, int val)
{
- struct acpi_object_list params;
- union acpi_object in_obj;
acpi_status status;
- params.count = 1;
- params.pointer = &in_obj;
- in_obj.type = ACPI_TYPE_INTEGER;
- in_obj.integer.value = val;
+ status = acpi_execute_simple_method(handle, (char *)method, val);
- status = acpi_evaluate_object(handle, (char *)method, ¶ms, NULL);
return (status == AE_OK ? 0 : -1);
}