summaryrefslogtreecommitdiff
path: root/src/drivers/i2c/alps
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2016-12-09 18:09:12 -0600
committerNico Huber <nico.h@gmx.de>2016-12-15 14:09:23 +0100
commite34c16f9157c0438e2ff42cd3b139397d3a7be24 (patch)
treedb099c5d3918ba2b8ca180312323960aae9bdbc3 /src/drivers/i2c/alps
parent31be2c969eed74510c3546bad0dbb9a7334f5843 (diff)
ec/chromeec: 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(). Change-Id: I4fdbf97e9b75030374dffc99a954dd9faa6a5209 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/17782 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/drivers/i2c/alps')
0 files changed, 0 insertions, 0 deletions