[PATCH] acpica: constify bool parameter val in fwts_acpi_region_handler_called_set

Colin King colin.king at canonical.com
Fri Sep 8 08:06:01 UTC 2017


From: Colin Ian King <colin.king at canonical.com>

Trival cleanup, constify the bool parameter val.

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/acpica/fwts_acpica.c      | 2 +-
 src/lib/include/fwts_acpica.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/acpica/fwts_acpica.c b/src/acpica/fwts_acpica.c
index bf547c21..e634daf3 100644
--- a/src/acpica/fwts_acpica.c
+++ b/src/acpica/fwts_acpica.c
@@ -237,7 +237,7 @@ static ACPI_STATUS fwts_region_init(
 	return AE_OK;
 }
 
-void fwts_acpi_region_handler_called_set(bool val)
+void fwts_acpi_region_handler_called_set(const bool val)
 {
 	region_handler_called = val;
 }
diff --git a/src/lib/include/fwts_acpica.h b/src/lib/include/fwts_acpica.h
index 017ecd89..d2f41d6a 100644
--- a/src/lib/include/fwts_acpica.h
+++ b/src/lib/include/fwts_acpica.h
@@ -30,7 +30,7 @@ int  fwts_acpica_deinit(void);
 fwts_list *fwts_acpica_get_object_names(int type);
 void fwts_acpica_sem_count_clear(void);
 void fwts_acpica_sem_count_get(int *acquired, int *released);
-void fwts_acpi_region_handler_called_set(bool val);
+void fwts_acpi_region_handler_called_set(const bool val);
 bool fwts_acpi_region_handler_called_get(void);
 
 #endif
-- 
2.14.1




More information about the fwts-devel mailing list