Commit f24b664d authored by Bob Moore's avatar Bob Moore Committed by Len Brown
Browse files

ACPICA: Update internal namespace node/handle interfaces

This change deletes the unnecessary acpi_ns_convert_entry_to_handle
interface and renames the acpi_ns_map_handle_to_node interface to
acpi_ns_validate_handle.  ACPICA BZ 798.

http://www.acpica.org/bugzilla/show_bug.cgi?id=798



Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 34c39c75
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -354,9 +354,7 @@ acpi_ns_externalize_name(u32 internal_name_length,
			 const char *internal_name,
			 u32 * converted_name_length, char **converted_name);

struct acpi_namespace_node *acpi_ns_map_handle_to_node(acpi_handle handle);

acpi_handle acpi_ns_convert_entry_to_handle(struct acpi_namespace_node *node);
struct acpi_namespace_node *acpi_ns_validate_handle(acpi_handle handle);

void acpi_ns_terminate(void);

+2 −2
Original line number Diff line number Diff line
@@ -718,7 +718,7 @@ acpi_ev_install_handler(acpi_handle obj_handle,

	/* Convert and validate the device handle */

	node = acpi_ns_map_handle_to_node(obj_handle);
	node = acpi_ns_validate_handle(obj_handle);
	if (!node) {
		return (AE_BAD_PARAMETER);
	}
@@ -1087,7 +1087,7 @@ acpi_ev_reg_run(acpi_handle obj_handle,

	/* Convert and validate the device handle */

	node = acpi_ns_map_handle_to_node(obj_handle);
	node = acpi_ns_validate_handle(obj_handle);
	if (!node) {
		return (AE_BAD_PARAMETER);
	}
+2 −2
Original line number Diff line number Diff line
@@ -259,7 +259,7 @@ acpi_install_notify_handler(acpi_handle device,

	/* Convert and validate the device handle */

	node = acpi_ns_map_handle_to_node(device);
	node = acpi_ns_validate_handle(device);
	if (!node) {
		status = AE_BAD_PARAMETER;
		goto unlock_and_exit;
@@ -425,7 +425,7 @@ acpi_remove_notify_handler(acpi_handle device,

	/* Convert and validate the device handle */

	node = acpi_ns_map_handle_to_node(device);
	node = acpi_ns_validate_handle(device);
	if (!node) {
		status = AE_BAD_PARAMETER;
		goto unlock_and_exit;
+2 −2
Original line number Diff line number Diff line
@@ -610,7 +610,7 @@ acpi_install_gpe_block(acpi_handle gpe_device,
		return (status);
	}

	node = acpi_ns_map_handle_to_node(gpe_device);
	node = acpi_ns_validate_handle(gpe_device);
	if (!node) {
		status = AE_BAD_PARAMETER;
		goto unlock_and_exit;
@@ -698,7 +698,7 @@ acpi_status acpi_remove_gpe_block(acpi_handle gpe_device)
		return (status);
	}

	node = acpi_ns_map_handle_to_node(gpe_device);
	node = acpi_ns_validate_handle(gpe_device);
	if (!node) {
		status = AE_BAD_PARAMETER;
		goto unlock_and_exit;
+2 −2
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ acpi_install_address_space_handler(acpi_handle device,

	/* Convert and validate the device handle */

	node = acpi_ns_map_handle_to_node(device);
	node = acpi_ns_validate_handle(device);
	if (!node) {
		status = AE_BAD_PARAMETER;
		goto unlock_and_exit;
@@ -155,7 +155,7 @@ acpi_remove_address_space_handler(acpi_handle device,

	/* Convert and validate the device handle */

	node = acpi_ns_map_handle_to_node(device);
	node = acpi_ns_validate_handle(device);
	if (!node ||
	    ((node->type != ACPI_TYPE_DEVICE) &&
	     (node->type != ACPI_TYPE_PROCESSOR) &&
Loading