soc/intel/icelake/acpi: Replace LEqual(a,b) with ASL 2.0 syntax
Replace `LEqual (a, b)` with `a == b`. Change-Id: I36137cbf63a36e68480029058f4426ed80ff6e3e Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70588 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:
parent
c1913705ac
commit
31c099a7b8
|
@ -26,17 +26,17 @@ Device (HDAS)
|
||||||
*/
|
*/
|
||||||
Method (_DSM, 4)
|
Method (_DSM, 4)
|
||||||
{
|
{
|
||||||
If (LEqual (Arg0, ^UUID)) {
|
If (Arg0 == ^UUID) {
|
||||||
/*
|
/*
|
||||||
* Function 0: Function Support Query
|
* Function 0: Function Support Query
|
||||||
* Returns a bitmask of functions supported.
|
* Returns a bitmask of functions supported.
|
||||||
*/
|
*/
|
||||||
If (LEqual (Arg2, Zero)) {
|
If (Arg2 == Zero) {
|
||||||
/*
|
/*
|
||||||
* NHLT Query only supported for revision 1 and
|
* NHLT Query only supported for revision 1 and
|
||||||
* if NHLT address and length are set in NVS.
|
* if NHLT address and length are set in NVS.
|
||||||
*/
|
*/
|
||||||
If (LAnd (LEqual (Arg1, One),
|
If (LAnd (Arg1 == One,
|
||||||
LAnd (LNotEqual (NHLA, Zero),
|
LAnd (LNotEqual (NHLA, Zero),
|
||||||
LNotEqual (NHLL, Zero)))) {
|
LNotEqual (NHLL, Zero)))) {
|
||||||
Return (Buffer (One) { 0x03 })
|
Return (Buffer (One) { 0x03 })
|
||||||
|
@ -52,7 +52,7 @@ Device (HDAS)
|
||||||
*
|
*
|
||||||
* Returns a pointer to NHLT table in memory.
|
* Returns a pointer to NHLT table in memory.
|
||||||
*/
|
*/
|
||||||
If (LEqual (Arg2, One)) {
|
If (Arg2 == One) {
|
||||||
CreateQWordField (NBUF, ^NHLT._MIN, NBAS)
|
CreateQWordField (NBUF, ^NHLT._MIN, NBAS)
|
||||||
CreateQWordField (NBUF, ^NHLT._MAX, NMAS)
|
CreateQWordField (NBUF, ^NHLT._MAX, NMAS)
|
||||||
CreateQWordField (NBUF, ^NHLT._LEN, NLEN)
|
CreateQWordField (NBUF, ^NHLT._LEN, NLEN)
|
||||||
|
|
Loading…
Reference in New Issue