superio/winbond/w83627hf/acpi: Replace LOr() with ASL 2.0 syntax

Replace `LOr (a, b)` with `a || b`.

Change-Id: I96cd391f1bdeea0c7e0c4a71c225a3e6925b4c6b
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60575
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
Felix Singer 2021-12-31 13:12:16 +01:00
parent 0a137cb91b
commit 5a303b0bca

View file

@ -204,7 +204,7 @@ Device(SIO) {
If (ACTR) {
Store (0x0F, Local0)
}
ElseIf (LOr (IO1H, IO1L))
ElseIf (IO1H || IO1L)
{
Store (0x0D, Local0)
}
@ -428,7 +428,7 @@ Device(SIO) {
Store (0x0D, Local0)
}
}
ElseIf (LOr (IO1H, IO1L))
ElseIf (IO1H || IO1L)
{
Store (0x0D, Local0)
}
@ -605,7 +605,7 @@ Device(SIO) {
If (ACTR) {
Store (0x0F, Local0)
}
ElseIf (LOr (IO1H, IO1L))
ElseIf (IO1H || IO1L)
{
Store (0x0D, Local0)
}
@ -729,7 +729,7 @@ Device(SIO) {
If (ACTR) {
Store (0x0F, Local0)
}
ElseIf (LOr (IO1H, IO1L))
ElseIf (IO1H || IO1L)
{
Store (0x0D, Local0)
}
@ -854,7 +854,7 @@ Device(SIO) {
If (ACTR) {
Store (0x0F, Local0)
}
ElseIf (LOr (IO1H, IO1L))
ElseIf (IO1H || IO1L)
{
Store (0x0D, Local0)
}
@ -978,7 +978,7 @@ Device(SIO) {
If (ACTR) {
Store (0x0F, Local0)
}
ElseIf (LOr (IO1H, IO1L))
ElseIf (IO1H || IO1L)
{
Store (0x0D, Local0)
}
@ -1064,7 +1064,7 @@ Device(SIO) {
If (ACTR) {
Store (0x0F, Local0)
}
ElseIf (Lor(LOr (IO1H, IO1L), LOr (IO2H, IO2L)))
ElseIf (IO1H || IO1L || IO2H || IO2L)
{
#ifdef W83627HF_KBC_COMPAT
Store (0x0F, Local0)
@ -1169,7 +1169,7 @@ Device(SIO) {
If (ACTR && IRQ1) {
Store (0x0F, Local0)
}
ElseIf (Lor(LOr (IO1H, IO1L), LOr (IO2H, IO2L)))
ElseIf (IO1H || IO1L || IO2H || IO2L)
{
#ifdef W83627HF_KBC_COMPAT
Store (0x0F, Local0)
@ -1244,8 +1244,8 @@ Device(SIO) {
Method (_STA) {
Store(0, Local0)
ENTER_CONFIG_MODE (7)
If (LOr(IO1L, IO1H)) {
If (LOr(ACTR, ACT1)) {
If (IO1L || IO1H) {
If (ACTR || ACT1) {
Store (0x0F, Local0)
}
Else {
@ -1299,8 +1299,8 @@ Device(SIO) {
{
Store(0, Local0)
ENTER_CONFIG_MODE (7)
If (LOr(IO2L, IO2H)) {
If (LOr(ACTR, ACT2)) {
If (IO2L || IO2H) {
If (ACTR || ACT2) {
Store (0x0F, Local0)
}
Else {
@ -1377,7 +1377,7 @@ Device(SIO) {
If (ACTR) {
Store (0x0F, Local0)
}
ElseIf (LOr (IO1H, IO1L))
ElseIf (IO1H || IO1L)
{
Store (0x0D, Local0)
}