From 2e4cc9b69915acaff00f7dd29ac4d0b882582467 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Thu, 30 Dec 2021 01:01:38 +0100 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/60478 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes --- src/ec/lenovo/h8/acpi/thermal.asl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ec/lenovo/h8/acpi/thermal.asl b/src/ec/lenovo/h8/acpi/thermal.asl index b21dafcd6a..2215d5fb35 100644 --- a/src/ec/lenovo/h8/acpi/thermal.asl +++ b/src/ec/lenovo/h8/acpi/thermal.asl @@ -85,11 +85,11 @@ External (\PPKG, MethodObj) 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)) -- cgit v1.2.3