summaryrefslogtreecommitdiff
path: root/src/ec
diff options
context:
space:
mode:
Diffstat (limited to 'src/ec')
-rw-r--r--src/ec/google/chromeec/acpi/battery.asl2
-rw-r--r--src/ec/lenovo/h8/acpi/thinkpad.asl10
-rw-r--r--src/ec/quanta/it8518/acpi/battery.asl2
-rw-r--r--src/ec/smsc/mec1308/acpi/battery.asl4
4 files changed, 9 insertions, 9 deletions
diff --git a/src/ec/google/chromeec/acpi/battery.asl b/src/ec/google/chromeec/acpi/battery.asl
index 0e48cac84a..114a10c36c 100644
--- a/src/ec/google/chromeec/acpi/battery.asl
+++ b/src/ec/google/chromeec/acpi/battery.asl
@@ -209,7 +209,7 @@ Method (BBST, 4, Serialized)
Local2 = BTDF
// See if within ~6% of full
- ShiftRight (Local2, 4, Local3)
+ Local3 = Local2 >> 4
If (Local1 > Local2 - Local3 && Local1 < Local2 + Local3)
{
Local1 = Local2
diff --git a/src/ec/lenovo/h8/acpi/thinkpad.asl b/src/ec/lenovo/h8/acpi/thinkpad.asl
index bb2b94a181..e1c979eaae 100644
--- a/src/ec/lenovo/h8/acpi/thinkpad.asl
+++ b/src/ec/lenovo/h8/acpi/thinkpad.asl
@@ -184,9 +184,9 @@ Device (HKEY)
HAST = One
If (HBDC) {
- ShiftRight (Arg0 & 2, 1, Local0)
+ Local0 = (Arg0 & 2) >> 1
\_SB.PCI0.LPCB.EC.BTEB = Local0
- ShiftRight (Arg0 & 4, 2, Local0)
+ Local0 = (Arg0 & 4) >> 2
WBDC = Local0
}
}
@@ -226,9 +226,9 @@ Device (HKEY)
HAST = One
If (HWAN) {
- ShiftRight (Arg0 & 2, 1, Local0)
+ Local0 = (Arg0 & 2) >> 1
\_SB.PCI0.LPCB.EC.WWEB = Local0
- ShiftRight (Arg0 & 4, 2, WWAN)
+ WWAN = (Arg0 & 4) >> 2
}
}
@@ -288,7 +288,7 @@ Device (HKEY)
Method (SUWB, 1)
{
If (HUWB) {
- ShiftRight (Arg0 & 2, 1, Local0)
+ Local0 = (Arg0 & 2) >> 1
\_SB.PCI0.LPCB.EC.UWBE = Local0
}
}
diff --git a/src/ec/quanta/it8518/acpi/battery.asl b/src/ec/quanta/it8518/acpi/battery.asl
index e63cefb7c5..82269010ef 100644
--- a/src/ec/quanta/it8518/acpi/battery.asl
+++ b/src/ec/quanta/it8518/acpi/battery.asl
@@ -316,7 +316,7 @@ Device (BATX)
Local2 = SBRS
// See if within ~3% of full
- ShiftRight (Local2, 5, Local3)
+ Local3 = Local2 >> 5
If (Local1 > Local2 - Local3 && Local1 < Local2 + Local3)
{
Local1 = Local2
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl
index 257897fb48..dbccf0fa21 100644
--- a/src/ec/smsc/mec1308/acpi/battery.asl
+++ b/src/ec/smsc/mec1308/acpi/battery.asl
@@ -59,7 +59,7 @@ Device (BAT0)
// Swap bytes in a word
Method (SWAB, 1, NotSerialized)
{
- ShiftRight (Arg0, 8, Local0)
+ Local0 = Arg0 >> 8
ShiftLeft (Arg0, 8, Local1)
And (Local1, 0xFF00, Local1)
Or (Local0, Local1, Local0)
@@ -156,7 +156,7 @@ Device (BAT0)
Local2 = SWAB (BTDF)
// See if within ~3% of full
- ShiftRight (Local2, 5, Local3)
+ Local3 = Local2 >> 5
If (Local1 > Local2 - Local3 && Local1 < Local2 + Local3)
{
Local1 = Local2