summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/quanta/it8518/acpi/battery.asl4
-rw-r--r--src/ec/smsc/mec1308/acpi/battery.asl4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl
index 7a3f77467a..e63cefb7c5 100644
--- a/src/ec/quanta/it8518/acpi/battery.asl
+++ b/src/ec/quanta/it8518/acpi/battery.asl
@@ -106,7 +106,7 @@ Device (BATX)
// ACPI spec : 0 - mWh : 1 - mAh
//
Local7 = SBCM
- XOr (Local7, One, PBIF[0])
+ PBIF[0] = Local7 ^ One
//
// Information ID 0 -
@@ -282,7 +282,7 @@ Device (BATX)
}
}
- XOr (DerefOf (PBIF[0]), One, Local6)
+ Local6 = DerefOf (PBIF[0]) ^ One
If (Local6)
{
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl
index 7669513a68..257897fb48 100644
--- a/src/ec/smsc/mec1308/acpi/battery.asl
+++ b/src/ec/smsc/mec1308/acpi/battery.asl
@@ -134,7 +134,7 @@ Device (BAT0)
Local1 = SWAB (BTPR)
If (Local1 != 0xFFFFFFFF && Local1 >= 0x8000) {
- Xor (Local1, 0xFFFF, Local1)
+ Local1 ^= 0xFFFF
Local1++
}
PBST[1] = Local1
@@ -144,7 +144,7 @@ Device (BAT0)
//
Local1 = SWAB (BTRA)
If (Local1 != 0xFFFFFFFF && Local1 >= 0x8000) {
- Xor (Local1, 0xFFFF, Local1)
+ Local1 ^= 0xFFFF
Local1++
}