Felix Singer has submitted this change. ( https://review.coreboot.org/c/coreboot/+/60478 )
Change subject: ec/lenovo/h8/acpi: Replace Subtract(a,b,c) with ASL 2.0 syntax ......................................................................
ec/lenovo/h8/acpi: Replace Subtract(a,b,c) with ASL 2.0 syntax
Replace `Subtract (a, b, c)` with `c = a - b`.
Change-Id: Ic38c60503fedaffc66153e103d40fda86781f9c8 Signed-off-by: Felix Singer felixsinger@posteo.net Reviewed-on: https://review.coreboot.org/c/coreboot/+/60478 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: HAOUAS Elyes ehaouas@noos.fr --- M src/ec/lenovo/h8/acpi/thermal.asl 1 file changed, 2 insertions(+), 2 deletions(-)
Approvals: build bot (Jenkins): Verified HAOUAS Elyes: Looks good to me, approved
diff --git a/src/ec/lenovo/h8/acpi/thermal.asl b/src/ec/lenovo/h8/acpi/thermal.asl index b21dafc..2215d5f 100644 --- a/src/ec/lenovo/h8/acpi/thermal.asl +++ b/src/ec/lenovo/h8/acpi/thermal.asl @@ -85,11 +85,11 @@ Store (GPSV (), Local0)
/* Active fan 10 degree below passive threshold */ - Subtract (Local0, 10, Local0) + Local0 -= 10
If (\FLVL) { /* Turn of 5 degree below trip point */ - Subtract (Local0, 5, Local0) + Local0 -= 5 }
Return (C2K (Local0))