Michael Niewöhner | e1e65cb | 2021-12-01 19:09:13 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
2 | |||||
3 | #include <string.h> | ||||
4 | #include <smbios.h> | ||||
5 | #include "commands.h" | ||||
6 | |||||
7 | void smbios_ec_revision(uint8_t *ec_major_revision, uint8_t *ec_minor_revision) | ||||
8 | { | ||||
9 | char *version, *major, *minor; | ||||
10 | |||||
11 | version = ec_read_fw_version(); /* 1.XX.YY */ | ||||
12 | major = &version[2]; | ||||
13 | minor = &version[5]; | ||||
14 | |||||
15 | *ec_major_revision = skip_atoi(&major); | ||||
16 | *ec_minor_revision = skip_atoi(&minor); | ||||
17 | } |