diff options
author | Michael Niewöhner <foss@mniewoehner.de> | 2021-04-06 23:51:49 +0200 |
---|---|---|
committer | Michael Niewöhner <foss@mniewoehner.de> | 2021-04-08 22:39:20 +0000 |
commit | d382f3d39f8438179822c83bcf643927105dc9da (patch) | |
tree | 3ebb49f70f0431faae9ab2c78364fd6687311ec8 /src/ec/lenovo/h8 | |
parent | 8d1a7a01c75c02a5c4ce9cae1a7f5c18f72e10d6 (diff) |
ec/lenovo/h8/acpi: fix wrong calculation
The conversion to ASL 2.0 syntax in commit 81d55cf introduced a
regression triggering a BUG in Linux when reading the battery current.
Correct the wrongly-converted calculation.
Fixes: 81d55cf ("src/ec/lenovo/h8/acpi/battery.asl: Convert to ASL 2.0")
Tested-by: Andrew A. I. <aidron@yandex.ru>
Change-Id: I1cea8f56eb0a674005582c87cad89f10a02d0701
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52144
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/lenovo/h8')
-rw-r--r-- | src/ec/lenovo/h8/acpi/battery.asl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ec/lenovo/h8/acpi/battery.asl b/src/ec/lenovo/h8/acpi/battery.asl index d5e8c1296c..ae07540fbc 100644 --- a/src/ec/lenovo/h8/acpi/battery.asl +++ b/src/ec/lenovo/h8/acpi/battery.asl @@ -115,7 +115,7 @@ Method(BSTA, 4, NotSerialized) { Local0 |= 1 // Negate present rate - Local2 -= 0x10000 + Local2 = 0x10000 - Local2 } Else // Full battery, force to 0 { |