acpica: constify bool parameter val in fwts_acpi_region_handler_called_set

Message ID 20170908080601.9690-1-colin.king@canonical.com
State New
Headers show
Series
  • acpica: constify bool parameter val in fwts_acpi_region_handler_called_set
Related show

Commit Message

Colin King Sept. 8, 2017, 8:06 a.m.
From: Colin Ian King <colin.king@canonical.com>

Trival cleanup, constify the bool parameter val.

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

Comments

Alex Hung Sept. 11, 2017, 4:50 p.m. | #1
On 2017-09-08 01:06 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> Trival cleanup, constify the bool parameter val.
> 
> Signed-off-by: Colin Ian King <colin.king@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
> 


Acked-by: Alex Hung <alex.hung@canonical.com>

Patch

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