diff options
Diffstat (limited to 'src/ec/clevo/it5570e/smbios.c')
-rw-r--r-- | src/ec/clevo/it5570e/smbios.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/ec/clevo/it5570e/smbios.c b/src/ec/clevo/it5570e/smbios.c new file mode 100644 index 0000000000..20fa2ce897 --- /dev/null +++ b/src/ec/clevo/it5570e/smbios.c @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <string.h> +#include <smbios.h> +#include "commands.h" + +void smbios_ec_revision(uint8_t *ec_major_revision, uint8_t *ec_minor_revision) +{ + char *version, *major, *minor; + + version = ec_read_fw_version(); /* 1.XX.YY */ + major = &version[2]; + minor = &version[5]; + + *ec_major_revision = skip_atoi(&major); + *ec_minor_revision = skip_atoi(&minor); +} |