Felix Singer has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60689 )
Change subject: ec/smsc/mec1308/acpi: Replace LGreaterEqual(a,b) with ASL 2.0 syntax ......................................................................
ec/smsc/mec1308/acpi: Replace LGreaterEqual(a,b) with ASL 2.0 syntax
Replace `LGreaterEqual(a, b)` with `a >= b`.
Change-Id: If83d7fe29d112ba0ed0f72798f2b5436ecf0a6a2 Signed-off-by: Felix Singer felixsinger@posteo.net --- M src/ec/smsc/mec1308/acpi/battery.asl 1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/89/60689/1
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl index e30c005..5aafce1 100644 --- a/src/ec/smsc/mec1308/acpi/battery.asl +++ b/src/ec/smsc/mec1308/acpi/battery.asl @@ -133,7 +133,7 @@ //
Store (SWAB (BTPR), Local1) - If (LNotEqual (Local1, 0xFFFFFFFF) && LGreaterEqual (Local1, 0x8000)) { + If (LNotEqual (Local1, 0xFFFFFFFF) && Local1 >= 0x8000) { Xor (Local1, 0xFFFF, Local1) Local1++ } @@ -143,7 +143,7 @@ // 2: BATTERY REMAINING CAPACITY // Store (SWAB (BTRA), Local1) - If (LNotEqual (Local1, 0xFFFFFFFF) && LGreaterEqual (Local1, 0x8000)) { + If (LNotEqual (Local1, 0xFFFFFFFF) && Local1 >= 0x8000) { Xor (Local1, 0xFFFF, Local1) Local1++ }