diff options
Diffstat (limited to 'src/ec/smsc/mec1308')
-rw-r--r-- | src/ec/smsc/mec1308/acpi/battery.asl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl index f0e6d6d4ec..09f3bd51ad 100644 --- a/src/ec/smsc/mec1308/acpi/battery.asl +++ b/src/ec/smsc/mec1308/acpi/battery.asl @@ -61,7 +61,7 @@ Device (BAT0) { Local0 = Arg0 >> 8 Local1 = Arg0 << 8 - And (Local1, 0xFF00, Local1) + Local1 &= 0xFF00 Local0 |= Local1 If (Local0 == 0xFFFF) { Local0 = 0xFFFFFFFF @@ -111,14 +111,14 @@ Device (BAT0) // Check if AC is present If (ACEX) { // Set only charging/discharging bits - And (Local0, 0x03, Local1) + Local1 = Local0 & 3 } Else { // Always discharging when on battery power Local1 = 0x01 } // Flag if the battery level is critical - And (Local0, 0x04, Local4) + Local4 = Local0 & 4 Local1 |= Local4 PBST[0] = Local1 |