diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-16 04:40:39 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-23 10:17:34 +0000 |
commit | 86bc2e708dc2600c5611b6573d43645e7d57e561 (patch) | |
tree | 54b589e40a81ee74915df4ed68a6a13c944bc17d /src/ec/smsc/mec1308 | |
parent | 372573eaff0f757f004de2f4fb3f688de93bbbba (diff) |
tree: Replace Or(a,b,c) with ASL 2.0 syntax
Replace `Or (a, b, c)` with `c = a | b`, respectively `c |= b` where
possible.
Change-Id: Icf194b248075f290de90fb4bc4e9a0cd9d76ec61
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70846
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/smsc/mec1308')
-rw-r--r-- | src/ec/smsc/mec1308/acpi/battery.asl | 4 |
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 fad52d2091..f0e6d6d4ec 100644 --- a/src/ec/smsc/mec1308/acpi/battery.asl +++ b/src/ec/smsc/mec1308/acpi/battery.asl @@ -62,7 +62,7 @@ Device (BAT0) Local0 = Arg0 >> 8 Local1 = Arg0 << 8 And (Local1, 0xFF00, Local1) - Or (Local0, Local1, Local0) + Local0 |= Local1 If (Local0 == 0xFFFF) { Local0 = 0xFFFFFFFF } @@ -119,7 +119,7 @@ Device (BAT0) // Flag if the battery level is critical And (Local0, 0x04, Local4) - Or (Local1, Local4, Local1) + Local1 |= Local4 PBST[0] = Local1 // Notify if battery state has changed since last time |