Cleanup access to vendor/part # info
Instead of macros to access MAINBOARD record, use convenience functions. Store pointers to MAINBOARD and HEADER for use outside of CB code. Change-Id: I074e3a0df7d25726cbd942538bfdc5a63dd17e12 Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com> Reviewed-on: http://review.coreboot.org/502 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
This commit is contained in:
committed by
Patrick Georgi
parent
d0ac789e21
commit
9a7c246767
@@ -142,8 +142,8 @@ static void parse_mainboard(unsigned char *ptr)
|
||||
{
|
||||
struct cb_mainboard *mb = (struct cb_mainboard *)ptr;
|
||||
|
||||
strncpy(cb_info.vendor, (const char *)MB_VENDOR_STRING(mb), 31);
|
||||
strncpy(cb_info.part, (const char *)MB_PART_STRING(mb), 31);
|
||||
strncpy(cb_info.vendor, cb_mb_vendor_part(mb), 31);
|
||||
strncpy(cb_info.part, cb_mb_part_string(mb), 31);
|
||||
}
|
||||
|
||||
static void parse_strings(unsigned char *ptr)
|
||||
|
Reference in New Issue
Block a user