From 86fb8e10ac17ce44186a024ceaddd0b23d7e14f2 Mon Sep 17 00:00:00 2001 From: Sakari Ailus Date: Wed, 27 Apr 2022 13:40:25 +0300 Subject: Constify AcpiGetHandle pathname argument AcpiGetHandle doesn't write to the pathname argument, therefore make it const. This allows later on passing pathname to AcpiGetHandle which is const, without creating a copy of it. Signed-off-by: Sakari Ailus --- source/components/namespace/nsxfname.c | 2 +- source/include/acpixf.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/components/namespace/nsxfname.c b/source/components/namespace/nsxfname.c index 7d52330f6..48946bbbb 100644 --- a/source/components/namespace/nsxfname.c +++ b/source/components/namespace/nsxfname.c @@ -192,7 +192,7 @@ AcpiNsCopyDeviceId ( ACPI_STATUS AcpiGetHandle ( ACPI_HANDLE Parent, - ACPI_STRING Pathname, + const char *Pathname, ACPI_HANDLE *RetHandle) { ACPI_STATUS Status; diff --git a/source/include/acpixf.h b/source/include/acpixf.h index f62c16cbd..49c0697f7 100644 --- a/source/include/acpixf.h +++ b/source/include/acpixf.h @@ -770,7 +770,7 @@ ACPI_EXTERNAL_RETURN_STATUS ( ACPI_STATUS AcpiGetHandle ( ACPI_HANDLE Parent, - ACPI_STRING Pathname, + const char *Pathname, ACPI_HANDLE *RetHandle)) ACPI_EXTERNAL_RETURN_STATUS ( -- cgit v1.2.1