soc/intel/cannonlake/acpi: Replace LNotEqual(a,b) with ASL 2.0 syntax
Replace `LNotEqual(a, b)` with `a != b`. Change-Id: I12c855437a581beade2d218b8f710cf1b32cb841 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60703 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems>
This commit is contained in:
parent
d62f3aa69d
commit
0767747974
|
@ -136,7 +136,7 @@ Method (GPID, 1, Serialized)
|
|||
Method (CGPM, 2, Serialized)
|
||||
{
|
||||
Store (GPID (Arg0), Local0)
|
||||
If (LNotEqual (Local0, 0)) {
|
||||
If (Local0 != 0) {
|
||||
/* Mask off current PM bits */
|
||||
PCRA (Local0, GPIO_MISCCFG, Not (MISCCFG_GPIO_PM_CONFIG_BITS))
|
||||
/* Mask in requested bits */
|
||||
|
|
|
@ -36,7 +36,7 @@ Device (HDAS)
|
|||
* NHLT Query only supported for revision 1 and
|
||||
* if NHLT address and length are set in NVS.
|
||||
*/
|
||||
If (Arg1 == 1 && LNotEqual (NHLA, Zero) && LNotEqual (NHLL, Zero)) {
|
||||
If (Arg1 == 1 && NHLA != 0 && NHLL != 0) {
|
||||
Return (Buffer (One) { 0x03 })
|
||||
} Else {
|
||||
Return (Buffer (One) { 0x01 })
|
||||
|
|
Loading…
Reference in New Issue