summaryrefslogtreecommitdiff
path: root/src/ec/apple
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-16 03:49:55 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-23 08:30:39 +0000
commit372573eaff0f757f004de2f4fb3f688de93bbbba (patch)
treee0159c28a9011c24bd3bade8167335830cb257dc /src/ec/apple
parent3c9291b3359d91d7238ed1886f4d87d635a6df55 (diff)
tree: Replace ShiftLeft(a,b) with ASL 2.0 syntax
Replace `ShiftLeft (a, b)` with `a << b`. Change-Id: I812b1ed9dcf3a5749b39a9beb9f870258ad6a0de Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70842 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/apple')
-rw-r--r--src/ec/apple/acpi/battery.asl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ec/apple/acpi/battery.asl b/src/ec/apple/acpi/battery.asl
index 6d4ab57c63..13761b36e6 100644
--- a/src/ec/apple/acpi/battery.asl
+++ b/src/ec/apple/acpi/battery.asl
@@ -34,7 +34,7 @@ Method(SBPC, 0, NotSerialized)
Method(SBRW, 2, NotSerialized)
{
Acquire(ECLK, 0xFFFF)
- SADR = ShiftLeft(Arg0, 0x01)
+ SADR = Arg0 << 1
SCMD = Arg1
SPTR = 0x09
SBPC()
@@ -46,7 +46,7 @@ Method(SBRW, 2, NotSerialized)
Method(SBRB, 2, NotSerialized)
{
Acquire(ECLK, 0xFFFF)
- SADR = ShiftLeft(Arg0, 0x01)
+ SADR = Arg0 << 1
SCMD = Arg1
SPTR = 0x0B
SBPC()