ec/lenovo/h8: return correctly typed package if battery is absent

Fixes "Discharge rate invalid message" and fwts error.

Change-Id: I51f9d819f164552567d75f83c95ba7523e97343e
Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-on: http://review.coreboot.org/6793
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Vladimir Serbinenko 2014-08-28 01:14:00 +02:00
parent 08ba7d0c27
commit 47d37b9ab2
1 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ Device (BAT0)
if (B0PR) { if (B0PR) {
Return (BSTA(0, BATI, B0CH, B0DI)) Return (BSTA(0, BATI, B0CH, B0DI))
} else { } else {
Return (BATS) Return (Package () { 0, 0, 0, 0 })
} }
} }
@ -281,7 +281,7 @@ Device (BAT1)
if (B1PR) { if (B1PR) {
Return (BSTA(0x10, BATI, B1CH, B1DI)) Return (BSTA(0x10, BATI, B1CH, B1DI))
} else { } else {
Return (BATS) Return (Package () { 0, 0, 0, 0 })
} }
} }