summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-01-02 01:58:20 +0100
committerFelix Singer <felixsinger@posteo.net>2022-06-09 09:18:43 +0000
commit9bfbbe8b170365ea34116557f43e5f8415a95160 (patch)
tree8ef995efc36361a83b4ce690d184a290cf943158 /src/ec
parent6929403b884adf7c16aed6dd630c5374fad039f2 (diff)
ec/smsc/mec1308/acpi: Replace LGreater(a,b) with ASL 2.0 syntax
Replace `LGreater(a, b)` with `a > b`. Change-Id: I04f3cc2dbba59d732c9c52a4b90a32481f9da337 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60684 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.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl
index 732f392308..dbc08ddc7c 100644
--- a/src/ec/smsc/mec1308/acpi/battery.asl
+++ b/src/ec/smsc/mec1308/acpi/battery.asl
@@ -157,7 +157,7 @@ Device (BAT0)
// See if within ~3% of full
ShiftRight (Local2, 5, Local3)
- If (LGreater (Local1, Local2 - Local3) && Local1 < Local2 + Local3)
+ If (Local1 > Local2 - Local3 && Local1 < Local2 + Local3)
{
Store (Local2, Local1)
}