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:
parent
08ba7d0c27
commit
47d37b9ab2
|
@ -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 })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue