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>
This commit is contained in:
@@ -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()
|
||||
|
@@ -621,7 +621,7 @@ Device (EC0)
|
||||
*/
|
||||
Method (UPPS, 1, Serialized)
|
||||
{
|
||||
Or (USPP, ShiftLeft (1, Arg0), USPP)
|
||||
Or (USPP, 1 << Arg0, USPP)
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -630,7 +630,7 @@ Device (EC0)
|
||||
*/
|
||||
Method (UPPC, 1, Serialized)
|
||||
{
|
||||
And (USPP, Not (ShiftLeft (1, Arg0)), USPP)
|
||||
And (USPP, Not (1 << Arg0), USPP)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@@ -90,7 +90,7 @@ Device (PM2) {
|
||||
}
|
||||
Release (EC_MUTEX)
|
||||
|
||||
Or (ShiftLeft (Local1, 8), Local0, Local0)
|
||||
Or (Local1 << 8, Local0, Local0)
|
||||
Local0 *= 10 / 64 /* Convert to 10th °C */
|
||||
Return (Local0 + 2732) /* Return as 10th Kelvin */
|
||||
}
|
||||
|
@@ -109,7 +109,7 @@ Device (HKEY)
|
||||
/* Report tablet mode switch state */
|
||||
Method (MHKG, 0, NotSerialized)
|
||||
{
|
||||
Return (ShiftLeft(TBSW, 3))
|
||||
Return (TBSW << 3)
|
||||
}
|
||||
|
||||
/* Mute audio */
|
||||
@@ -167,7 +167,7 @@ Device (HKEY)
|
||||
{
|
||||
Or(Local0, 2, Local0)
|
||||
}
|
||||
Or(Local0, ShiftLeft(WBDC, 2), Local0)
|
||||
Or(Local0, WBDC << 2, Local0)
|
||||
Return (Local0)
|
||||
} Else {
|
||||
Return (0)
|
||||
@@ -209,7 +209,7 @@ Device (HKEY)
|
||||
{
|
||||
Or(Local0, 2, Local0)
|
||||
}
|
||||
Or(Local0, ShiftLeft(WWAN, 2), Local0)
|
||||
Or(Local0, WWAN << 2, Local0)
|
||||
Return (Local0)
|
||||
} Else {
|
||||
Return (0)
|
||||
|
Reference in New Issue
Block a user