switch-coreboot/src/ec
Matt DeVillier 79d89b1369 UPSTREAM: 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

BUG=None
BRANCH=None
TEST=None

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>

Change-Id: Ic86048d1d6354b9b0dac3c8957df318d0825c905
Reviewed-on: https://chromium-review.googlesource.com/421167
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
2016-12-16 07:51:42 -08:00
..
acpi UPSTREAM: ec/acpi: Include ec.c unconditionally in romstage 2016-11-10 18:31:06 -08:00
compal/ene932 UPSTREAM: ec/ene932: correct ACPI battery data fed into ToString() 2016-12-16 07:51:42 -08:00
google/chromeec UPSTREAM: ec/google/chromeec: query cbmem for retrain status 2016-12-16 07:51:35 -08:00
kontron/it8516e UPSTREAM: sio/acpi: Add more magic bytes to ENTER/EXIT_CONFIG_MODE 2016-12-08 22:46:20 -08:00
lenovo UPSTREAM: buildsystem: Drop explicit (k)config.h includes 2016-12-09 03:29:54 -08:00
purism/librem ec: Add support for EC used on Purism Librem laptops 2016-01-21 02:31:34 +01:00
quanta UPSTREAM: src/ec: Improve code formatting 2016-09-07 21:31:50 -07:00
roda/it8518 UPSTREAM: ec/roda/it8518: Add another embedded controller 2016-11-21 11:54:13 -08:00
smsc/mec1308 Workaround for unused variable warning. 2016-02-09 19:58:14 +01:00
ec.h UPSTREAM: mainboards,ec: provide common declaration for mainboard_ec_init() 2016-09-28 05:49:31 -07:00