Angel Pons | 3ef916f | 2020-04-02 23:49:13 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Aaron Durbin | 15d2a79 | 2016-11-08 10:04:04 -0600 | [diff] [blame] | 2 | |
3 | #include <boardid.h> | ||||
4 | #include <smbios.h> | ||||
5 | #include <string.h> | ||||
6 | |||||
7 | const char *smbios_mainboard_version(void) | ||||
8 | { | ||||
9 | static char str[8]; | ||||
10 | |||||
11 | snprintf(str, sizeof(str), "rev%d", board_id()); | ||||
12 | |||||
13 | return str; | ||||
14 | } |