platform/chrome: wilco_ec: Add version sysfs entries
authorRaul E Rangel <rrangel@chromium.org>
Mon, 3 Jun 2019 18:16:49 +0000 (12:16 -0600)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Wed, 5 Jun 2019 15:28:42 +0000 (17:28 +0200)
commit79e3f1d3db3d99ac7ae4f29b00da545df231a5a7
tree8aa968d399b96bba7ab8e6c7a70ed73b4ff0889f
parent1210d1e6bad1e7ccccb19627b880a50d7c15dd51
platform/chrome: wilco_ec: Add version sysfs entries

Add the ability to extract version information from the EC.

Example Output:
$ cd /sys/bus/platform/devices/GOOG000C:00
$ tail build_date build_revision version model_number
==> build_date <==
04/25/19

==> build_revision <==
d2592cae0

==> version <==
00.00.14

==> model_number <==
08B6

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-by: Nick Crews <ncrews@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Documentation/ABI/testing/sysfs-platform-wilco-ec
drivers/platform/chrome/wilco_ec/sysfs.c