aboutsummaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/acglobal.h
diff options
context:
space:
mode:
authorZhang Rui2013-09-03 08:32:13 +0800
committerRafael J. Wysocki2013-09-24 01:37:57 +0200
commitc7c878a41d8b087f292015d4afeb2950a5d28830 (patch)
treeff7e60acc625227c5cf33f3561c6977923275a01 /drivers/acpi/acpica/acglobal.h
parent29c29a9bb4d5abdb92480375e42e48a9190306e8 (diff)
intel-rst: convert acpi_evaluate_object() to acpi_evaluate_integer()
acpi_evaluate_integer() is an ACPI API introduced to evaluate an ACPI control method that is known to have an integer return value. This API can simplify the code because the calling function does not need to use the specified acpi_buffer structure required by acpi_evaluate_object(); Convert acpi_evaluate_object() to acpi_evaluate_integer() in drivers/platform/x86/intel-rst.c in this patch. Plus, this should also fix a memory leak that the acpi_buffer is not freed in some cases. Signed-off-by: Zhang Rui <rui.zhang@intel.com> CC: Matthew Garrett <matthew.garrett@nebula.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/acglobal.h')
0 files changed, 0 insertions, 0 deletions