ACPICA: Namespace: Add acpi_ns_handle_to_name()
authorLv Zheng <lv.zheng@intel.com>
Wed, 30 Nov 2016 07:20:52 +0000 (15:20 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 1 Dec 2016 13:25:44 +0000 (14:25 +0100)
commit523db19bdc35ecb76fceeb83a0a34da8d78b2689
tree18f75edc22a36191578beff32ed6c88da2f4c40b
parentd0ab6714c53c9d7f3e42b7ea2e108afbd7449305
ACPICA: Namespace: Add acpi_ns_handle_to_name()

ACPICA commit f9fe27a68a90c9d32dd3156241a5e788fb6956ea

This patch adds acpi_ns_handle_to_name() so that in the acpi_get_name():
1. Logics can be made simpler,
2. Lock held for acpi_ns_handle_to_name() can also be applied to
   acpi_ns_handle_to_pathname().
The lock might be useless (see Link 1 below), but kept as acpi_get_name()
is an external API. Except the lock correction, this patch is a functional
no-op. BZ 1182, Lv Zheng.

Link: https://github.com/acpica/acpica/commit/f9fe27a6
Link: https://bugs.acpica.org/show_bug.cgi?id=1182
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/acnamesp.h
drivers/acpi/acpica/nsnames.c
drivers/acpi/acpica/nsxfname.c