summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2022-04-27 13:40:25 +0300
committerSakari Ailus <sakari.ailus@linux.intel.com>2022-05-06 13:54:50 +0300
commit86fb8e10ac17ce44186a024ceaddd0b23d7e14f2 (patch)
treec32fe9c6dfcaa0d957cd38a6ad8586c490e9fd2c
parentc6837a4aaeb4b7f6000307aacc04de99d1bae28c (diff)
downloadacpica-86fb8e10ac17ce44186a024ceaddd0b23d7e14f2.tar.gz
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 <sakari.ailus@linux.intel.com>
-rw-r--r--source/components/namespace/nsxfname.c2
-rw-r--r--source/include/acpixf.h2
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 (