switch-coreboot/src/ec
Matt DeVillier 678923c2b7 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>
2016-12-15 23:39:04 +01:00
..
acpi ec/acpi: Include ec.c unconditionally in romstage 2016-11-09 10:05:18 +01:00
compal/ene932 ec/ene932: correct ACPI battery data fed into ToString() 2016-12-15 23:39:04 +01:00
google/chromeec ec/google/chromeec: query cbmem for retrain status 2016-12-15 23:11:37 +01:00
kontron/it8516e sio/acpi: Add more magic bytes to ENTER/EXIT_CONFIG_MODE 2016-12-07 20:01:50 +01:00
lenovo buildsystem: Drop explicit (k)config.h includes 2016-12-08 19:46:53 +01:00
purism/librem ec: Add support for EC used on Purism Librem laptops 2016-01-21 02:31:34 +01:00
quanta src/ec: Improve code formatting 2016-09-07 13:55:05 +02:00
roda/it8518 ec/roda/it8518: Add another embedded controller 2016-11-21 15:07:26 +01:00
smsc/mec1308 Workaround for unused variable warning. 2016-02-09 19:58:14 +01:00
ec.h mainboards,ec: provide common declaration for mainboard_ec_init() 2016-09-26 23:53:12 +02:00