summaryrefslogtreecommitdiff
path: root/src/ec/lenovo/h8/acpi
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-30 01:01:38 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-31 00:21:51 +0000
commit2e4cc9b69915acaff00f7dd29ac4d0b882582467 (patch)
tree19127d901fd40e91e3f15a93f1bb1ef9eb8964f2 /src/ec/lenovo/h8/acpi
parentae2d14b4a1a1a13c03c838680a8d223cb7787504 (diff)
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>
Diffstat (limited to 'src/ec/lenovo/h8/acpi')
-rw-r--r--src/ec/lenovo/h8/acpi/thermal.asl4
1 files changed, 2 insertions, 2 deletions
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))