ec/purism/librem: fix battery present rate

EC ACPI code is calculating the drain rate, but does not store it
in the battery status package before returning it.  Correct this
omission, and set the drain rate to a preset minimum if calculated
value is less.  Taken from vendor firmware ACPI dump.

Change-Id: I52837d5879112ab3103976bda28906fac8f880ec
Signed-off-by: Matt DeVillier <>
Tested-by: build bot (Jenkins) <>
Reviewed-by: Paul Menzel <>
Reviewed-by: Martin Roth <>
Reviewed-by: Youness Alaoui <>
1 file changed