ec/lenovo/h8/acpi: Replace LGreater(a,b) with ASL 2.0 syntax

Replace `LGreater(a, b)` with `a > b`.

Change-Id: I1dbe6c325ed33a4dd15e4d6315b2308d8351974e
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60683
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
Felix Singer 2022-01-02 01:56:53 +01:00
parent 95bfa033c7
commit c253368e46
1 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ Scope(\_TZ)
Return (3000) Return (3000)
} }
if (LGreater(Local0, 4012)) { if (Local0 > 4012) {
Return (3000) Return (3000)
} }
Return (Local0) Return (Local0)
@ -47,7 +47,7 @@ External (\PPKG, MethodObj)
/* Get critical temperature in degree celsius */ /* Get critical temperature in degree celsius */
Method (GCRT, 0, NotSerialized) { Method (GCRT, 0, NotSerialized) {
Store (\TCRT, Local0) Store (\TCRT, Local0)
if (LGreater (Local0, 0)) { if (Local0 > 0) {
Return (Local0) Return (Local0)
} }
Return (127) Return (127)
@ -56,7 +56,7 @@ External (\PPKG, MethodObj)
/* Get passive temperature in degree celsius */ /* Get passive temperature in degree celsius */
Method (GPSV, 0, NotSerialized) { Method (GPSV, 0, NotSerialized) {
Store (\TPSV, Local0) Store (\TPSV, Local0)
if (LGreater (Local0, 0)) { if (Local0 > 0) {
Return (Local0) Return (Local0)
} }
Return (95) Return (95)