Skip to content

Commit 91fdb91

Browse files
Sakari Ailusrafaeljw
authored andcommitted
ACPICA: Constify pathname argument for acpi_get_handle()
acpi_get_handle() uses the pathname argument to find a handle related to that pathname but it does not need to modify it. Make it const, in order to be able to pass const pathname to it. Link: acpica/acpica#773 Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent e1d9148 commit 91fdb91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/acpi/acpica/nsxfname.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static char *acpi_ns_copy_device_id(struct acpi_pnp_device_id *dest,
4444

4545
acpi_status
4646
acpi_get_handle(acpi_handle parent,
47-
acpi_string pathname, acpi_handle *ret_handle)
47+
const char *pathname, acpi_handle *ret_handle)
4848
{
4949
acpi_status status;
5050
struct acpi_namespace_node *node = NULL;

include/acpi/acpixf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ ACPI_EXTERNAL_RETURN_STATUS(acpi_status
526526
struct acpi_buffer *ret_path_ptr))
527527
ACPI_EXTERNAL_RETURN_STATUS(acpi_status
528528
acpi_get_handle(acpi_handle parent,
529-
acpi_string pathname,
529+
const char *pathname,
530530
acpi_handle *ret_handle))
531531
ACPI_EXTERNAL_RETURN_STATUS(acpi_status
532532
acpi_attach_data(acpi_handle object,

0 commit comments

Comments
 (0)