Commit 824b558b authored by Luming Yu's avatar Luming Yu Committed by Len Brown

[ACPI] acpi_video_device_write_state() now works

http://bugzilla.kernel.org/show_bug.cgi?id=5060Signed-off-by: default avatarLuming Yu <luming.yu@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 9a31477a
...@@ -297,11 +297,12 @@ acpi_video_device_set_state(struct acpi_video_device *device, int state) ...@@ -297,11 +297,12 @@ acpi_video_device_set_state(struct acpi_video_device *device, int state)
int status; int status;
union acpi_object arg0 = { ACPI_TYPE_INTEGER }; union acpi_object arg0 = { ACPI_TYPE_INTEGER };
struct acpi_object_list args = { 1, &arg0 }; struct acpi_object_list args = { 1, &arg0 };
unsigned long ret;
ACPI_FUNCTION_TRACE("acpi_video_device_set_state"); ACPI_FUNCTION_TRACE("acpi_video_device_set_state");
arg0.integer.value = state; arg0.integer.value = state;
status = acpi_evaluate_integer(device->handle, "_DSS", &args, NULL); status = acpi_evaluate_integer(device->handle, "_DSS", &args, &ret);
return_VALUE(status); return_VALUE(status);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment