ACPICA: Prefer ACPI_TO_POINTER() over ACPI_ADD_PTR()
"Linux Kernel Mailing List" <[email protected]>
| Newsgroups | gmane.linux.kernel.commits.head |
|---|---|
| Message-ID | <[email protected]> |
Web: https://git.kernel.org/torvalds/c/9cf02a0a66da50a990604533fa7d2dbf74aae054 Commit: 9cf02a0a66da50a990604533fa7d2dbf74aae054 Parent: 761f0b82393353507930b6721ae4311a9df2ca36 Refname: refs/heads/master Author: Jung-uk Kim <[email protected]> AuthorDate: Wed Jan 24 15:42:31 2018 -0800 Committer: Rafael J. Wysocki <[email protected]> CommitDate: Sun Feb 4 08:58:31 2018 +0100 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 <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]> --- include/acpi/actypes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html