coreboot-kgpe-d16/src/ec
Matt DeVillier af4c0a431c ec/ene_kb3940q: 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

TEST: boot Windows on google/butterfly, observe battery data
reported correctly.

Change-Id: I395cc7fbdf26c8cc816e47107e552c0533580fa1
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/19961
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
2017-06-04 18:42:07 +02:00
..
acpi ec/acpi: Add function to read EC status register 2017-04-08 13:16:52 +02: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: Fix typo in ECUI device 2017-06-02 07:59:07 +02:00
kontron/it8516e sio/acpi: Add more magic bytes to ENTER/EXIT_CONFIG_MODE 2016-12-07 20:01:50 +01:00
lenovo mb/lenovo/x201: Add support for ThinkLight 2017-05-11 16:43:26 +02:00
purism/librem ec: Add support for EC used on Purism Librem laptops 2016-01-21 02:31:34 +01:00
quanta ec/ene_kb3940q: correct ACPI battery data fed into ToString() 2017-06-04 18:42:07 +02:00
roda/it8518 ec/roda/it8518: Do EC write manually with long timeout 2017-04-08 13:17:56 +02: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