summaryrefslogtreecommitdiff
path: root/include/acpi
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2018-01-24 15:42:31 -0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-02-04 08:58:31 +0100
commit9cf02a0a66da50a990604533fa7d2dbf74aae054 (patch)
tree1dae340516abfa50eaa5ff19e5587d7d35cb34b2 /include/acpi
parent761f0b82393353507930b6721ae4311a9df2ca36 (diff)
ACPICA: Prefer ACPI_TO_POINTER() over ACPI_ADD_PTR()
This is more easy to read. Signed-off-by: Jung-uk Kim <jkim@free_BSD.org> Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/actypes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
index f3999ae7a43f..0b6b55f1e597 100644
--- a/include/acpi/actypes.h
+++ b/include/acpi/actypes.h
@@ -485,7 +485,7 @@ typedef u8 acpi_owner_id;
/*
* Constants with special meanings
*/
-#define ACPI_ROOT_OBJECT ACPI_ADD_PTR (acpi_handle, (void *) 0, ACPI_MAX_PTR)
+#define ACPI_ROOT_OBJECT ((acpi_handle) ACPI_TO_POINTER (ACPI_MAX_PTR))
#define ACPI_WAIT_FOREVER 0xFFFF /* u16, as per ACPI spec */
#define ACPI_DO_NOT_WAIT 0