Skip to content

Commit

Permalink
[ACPI] acpi_video_device_write_state() now works
Browse files Browse the repository at this point in the history
http://bugzilla.kernel.org/show_bug.cgi?id=5060

Signed-off-by: Luming Yu <luming.yu@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Luming Yu authored and Len Brown committed Sep 3, 2005
1 parent 9a31477 commit 824b558
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/acpi/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,11 +297,12 @@ acpi_video_device_set_state(struct acpi_video_device *device, int state)
int status;
union acpi_object arg0 = { ACPI_TYPE_INTEGER };
struct acpi_object_list args = { 1, &arg0 };
unsigned long ret;

ACPI_FUNCTION_TRACE("acpi_video_device_set_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);
}
Expand Down

0 comments on commit 824b558

Please sign in to comment.