summaryrefslogtreecommitdiff
path: root/src/ec/compal/ene932/chip.h
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2016-12-09 18:14:57 -0600
committerNico Huber <nico.h@gmx.de>2016-12-15 23:39:04 +0100
commit678923c2b7f8c50746be4e49f9ad3ccd1ca11c45 (patch)
treefc2b021d7c23f3545afcc671cfa31b1ef702e8ce /src/ec/compal/ene932/chip.h
parentf8bd1dd43cadc01cd93b6f14373d3fd3903d5817 (diff)
ec/ene932: correct ACPI battery data fed into ToString()
ToString() requires the input buffer data to be null-terminated, but the data returned by the EC is not, leading Windows to fail to report any battery data at all. Correct this by concatenating a null terminator (0x00) to the end of the buffer data before inputting to ToString() where needed Change-Id: Ic86048d1d6354b9b0dac3c8957df318d0825c905 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/17783 Tested-by: build bot (Jenkins) Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/ec/compal/ene932/chip.h')
0 files changed, 0 insertions, 0 deletions