ACK: [PATCH] bios: s0idle: constify read-only pointer

Alex Hung alex.hung at canonical.com
Mon Apr 12 19:25:46 UTC 2021


On 2021-04-12 3:44 a.m., Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> Make pointer fadt const.
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/bios/s0idle/s0idle.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/bios/s0idle/s0idle.c b/src/bios/s0idle/s0idle.c
> index 0a4c8bb2..87b798e9 100644
> --- a/src/bios/s0idle/s0idle.c
> +++ b/src/bios/s0idle/s0idle.c
> @@ -51,7 +51,7 @@ static int s0idle_init(fwts_framework *fw)
>  
>  static int s0idle_test1(fwts_framework *fw)
>  {
> -	fwts_acpi_table_fadt *fadt = (fwts_acpi_table_fadt*) table->data;
> +	const fwts_acpi_table_fadt *fadt = (const fwts_acpi_table_fadt *)table->data;
>  
>  	if (fadt->flags & FWTS_FACP_FLAG_LOW_POWER_S0_IDLE_CAPABLE)
>  		fwts_passed(fw, "LOW_POWER_S0_IDLE_CAPABLE is set in ACPI FADT.");
> 

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



More information about the fwts-devel mailing list