summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-01-02 02:18:37 +0100
committerFelix Singer <felixsinger@posteo.net>2022-06-09 09:16:49 +0000
commita484bba667a175b4db23104ffd9897c5ff340854 (patch)
tree6bcff0d6b2766ab9d9a0113963385d32bda7e857 /src/ec
parent10ca0ab51200f042d403ce912f74cf45305d4604 (diff)
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> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60689 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/smsc/mec1308/acpi/battery.asl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl
index 0007c4129f..3ba3149655 100644
--- a/src/ec/smsc/mec1308/acpi/battery.asl
+++ b/src/ec/smsc/mec1308/acpi/battery.asl
@@ -133,7 +133,7 @@ Device (BAT0)
//
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 @@ Device (BAT0)
// 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++
}