summaryrefslogtreecommitdiff
path: root/src/ec/smsc/mec1308
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-01-02 02:51:20 +0100
committerFelix Singer <felixsinger@posteo.net>2022-06-09 09:18:24 +0000
commit6929403b884adf7c16aed6dd630c5374fad039f2 (patch)
tree754086b19026027847783c24f11ca99b330c7edb /src/ec/smsc/mec1308
parent8353e9a8a788f0eba618828519897dfcb498e0ff (diff)
ec/smsc/mec1308/acpi: Replace LNotEqual(a,b) with ASL 2.0 syntax
Replace `LNotEqual(a, b)` with `a != b`. Change-Id: Ib34dc8d84815d0885f30b3ea8ceb2fb95a833d50 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60701 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Diffstat (limited to 'src/ec/smsc/mec1308')
-rw-r--r--src/ec/smsc/mec1308/acpi/battery.asl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl
index 9fd5ff6f46..732f392308 100644
--- a/src/ec/smsc/mec1308/acpi/battery.asl
+++ b/src/ec/smsc/mec1308/acpi/battery.asl
@@ -123,7 +123,7 @@ Device (BAT0)
Store (Local1, PBST[0])
// Notify if battery state has changed since last time
- If (LNotEqual (Local1, BSTP)) {
+ If (Local1 != BSTP) {
Store (Local1, BSTP)
Notify (BAT0, 0x80)
}
@@ -133,7 +133,7 @@ Device (BAT0)
//
Store (SWAB (BTPR), Local1)
- If (LNotEqual (Local1, 0xFFFFFFFF) && Local1 >= 0x8000) {
+ If (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) && Local1 >= 0x8000) {
+ If (Local1 != 0xFFFFFFFF && Local1 >= 0x8000) {
Xor (Local1, 0xFFFF, Local1)
Local1++
}