scan.c (953969ddf5b049361ed1e8471cc43dc4134d2a6f) | scan.c (c8f7a62cdde461914c6457d5f4362538ed810bf4) |
---|---|
1/* 2 * scan.c - support for transforming the ACPI namespace into individual objects 3 */ 4 5#include <linux/module.h> 6#include <linux/init.h> 7#include <linux/acpi.h> 8 --- 649 unchanged lines hidden (view full) --- 658 Done: 659 return result; 660} 661 662/* -------------------------------------------------------------------------- 663 Device Enumeration 664 -------------------------------------------------------------------------- */ 665 | 1/* 2 * scan.c - support for transforming the ACPI namespace into individual objects 3 */ 4 5#include <linux/module.h> 6#include <linux/init.h> 7#include <linux/acpi.h> 8 --- 649 unchanged lines hidden (view full) --- 658 Done: 659 return result; 660} 661 662/* -------------------------------------------------------------------------- 663 Device Enumeration 664 -------------------------------------------------------------------------- */ 665 |
666acpi_status 667acpi_bus_get_ejd(acpi_handle handle, acpi_handle *ejd) 668{ 669 acpi_status status; 670 acpi_handle tmp; 671 struct acpi_buffer buffer = {ACPI_ALLOCATE_BUFFER, NULL}; 672 union acpi_object *obj; 673 674 status = acpi_get_handle(handle, "_EJD", &tmp); 675 if (ACPI_FAILURE(status)) 676 return status; 677 678 status = acpi_evaluate_object(handle, "_EJD", NULL, &buffer); 679 if (ACPI_SUCCESS(status)) { 680 obj = buffer.pointer; 681 status = acpi_get_handle(NULL, obj->string.pointer, ejd); 682 kfree(buffer.pointer); 683 } 684 return status; 685} 686EXPORT_SYMBOL_GPL(acpi_bus_get_ejd); 687 688 |
|
666static int acpi_bus_get_flags(struct acpi_device *device) 667{ 668 acpi_status status = AE_OK; 669 acpi_handle temp = NULL; 670 671 672 /* Presence of _STA indicates 'dynamic_status' */ 673 status = acpi_get_handle(device->handle, "_STA", &temp); --- 803 unchanged lines hidden --- | 689static int acpi_bus_get_flags(struct acpi_device *device) 690{ 691 acpi_status status = AE_OK; 692 acpi_handle temp = NULL; 693 694 695 /* Presence of _STA indicates 'dynamic_status' */ 696 status = acpi_get_handle(device->handle, "_STA", &temp); --- 803 unchanged lines hidden --- |