ACK: [PATCH] fwts_acpica.h: constify type argument in fwts_acpica_get_object_names
Alex Hung
alex.hung at canonical.com
Sun Apr 11 20:51:56 UTC 2021
On 2021-04-10 4:09 p.m., Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> The type argument is not modified, make it const.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> src/lib/include/fwts_acpica.h | 2 +-
> src/libfwtsacpica/fwts_acpica.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/lib/include/fwts_acpica.h b/src/lib/include/fwts_acpica.h
> index be2e948f..7ce08c40 100644
> --- a/src/lib/include/fwts_acpica.h
> +++ b/src/lib/include/fwts_acpica.h
> @@ -27,7 +27,7 @@ typedef void (*fwts_acpica_log_callback)(fwts_framework *fw, const char *buffer)
> void fwts_acpica_set_fwts_framework(fwts_framework *fw);
> int fwts_acpica_init(fwts_framework *fw);
> int fwts_acpica_deinit(void);
> -fwts_list *fwts_acpica_get_object_names(int type);
> +fwts_list *fwts_acpica_get_object_names(const 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(const bool val);
> diff --git a/src/libfwtsacpica/fwts_acpica.c b/src/libfwtsacpica/fwts_acpica.c
> index 89f72aaf..7ddc62a3 100644
> --- a/src/libfwtsacpica/fwts_acpica.c
> +++ b/src/libfwtsacpica/fwts_acpica.c
> @@ -1321,7 +1321,7 @@ static ACPI_STATUS fwts_acpi_walk_for_object_names(
> * fwts_acpica_get_object_names()
> * fetch a list of object names that match a specified type
> */
> -fwts_list *fwts_acpica_get_object_names(int type)
> +fwts_list *fwts_acpica_get_object_names(const int type)
> {
> fwts_list *list;
>
>
Acked-by: Alex Hung <alex.hung at canonical.com>
More information about the fwts-devel
mailing list