[coreboot-gerrit] Patch set updated for coreboot: 4efa193 ec/lenovo/h8: return correctly typed package if battery is absent

Vladimir Serbinenko (phcoder@gmail.com) gerrit at coreboot.org
Fri Aug 29 20:04:31 CEST 2014


Vladimir Serbinenko (phcoder at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/6793

-gerrit

commit 4efa19362e467a01a9d3cac7784578baf9479045
Author: Vladimir Serbinenko <phcoder at gmail.com>
Date:   Thu Aug 28 01:14:00 2014 +0200

    ec/lenovo/h8: return correctly typed package if battery is absent
    
    Change-Id: I51f9d819f164552567d75f83c95ba7523e97343e
    Signed-off-by: Vladimir Serbinenko <phcoder at gmail.com>
---
 src/ec/lenovo/h8/acpi/battery.asl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ec/lenovo/h8/acpi/battery.asl b/src/ec/lenovo/h8/acpi/battery.asl
index 7dd49fe..6abd4a5 100644
--- a/src/ec/lenovo/h8/acpi/battery.asl
+++ b/src/ec/lenovo/h8/acpi/battery.asl
@@ -223,7 +223,7 @@ Device (BAT0)
 		if (B0PR) {
 			Return (BSTA(0, BATI, B0CH, B0DI))
 		} else {
-			Return (BATS)
+			Return (Package () { 0, 0, 0, 0 })
 		}
 	}
 
@@ -281,7 +281,7 @@ Device (BAT1)
 		if (B1PR) {
 			Return (BSTA(0x10, BATI, B1CH, B1DI))
 		} else {
-			Return (BATS)
+			Return (Package () { 0, 0, 0, 0 })
 		}
 	}
 



More information about the coreboot-gerrit mailing list