Fix bitrot, parent unused error and acpi_object_type union change.
This commit is contained in:
parent
30275c3f99
commit
5c62e15f76
@ -46,7 +46,7 @@ displaycontrols_init_device(void *_cookie, void **cookie)
|
|||||||
{
|
{
|
||||||
device_node *node = (device_node *)_cookie;
|
device_node *node = (device_node *)_cookie;
|
||||||
displaycontrols_device_info *device;
|
displaycontrols_device_info *device;
|
||||||
device_node *parent;
|
// device_node *parent;
|
||||||
|
|
||||||
acpi_objects arguments;
|
acpi_objects arguments;
|
||||||
acpi_object_type argument;
|
acpi_object_type argument;
|
||||||
@ -67,7 +67,7 @@ displaycontrols_init_device(void *_cookie, void **cookie)
|
|||||||
}
|
}
|
||||||
|
|
||||||
argument.object_type = ACPI_TYPE_INTEGER;
|
argument.object_type = ACPI_TYPE_INTEGER;
|
||||||
argument.data.integer = BIOS_DISPLAY_SWITCH | BIOS_BRIGHTNESS_CONTROL;
|
argument.integer.integer = BIOS_DISPLAY_SWITCH | BIOS_BRIGHTNESS_CONTROL;
|
||||||
arguments.count = 1;
|
arguments.count = 1;
|
||||||
arguments.pointer = &argument;
|
arguments.pointer = &argument;
|
||||||
if (sAcpi->evaluate_object(&device->acpi_device, "_DOS", &arguments, NULL, 0)
|
if (sAcpi->evaluate_object(&device->acpi_device, "_DOS", &arguments, NULL, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user