From 91ec3751545c81854e5c68c3edac2e33f175f3db Mon Sep 17 00:00:00 2001 From: Burt P Date: Sun, 30 Jun 2019 13:58:36 -0500 Subject: Memory devices: DMI may provide mfgr codes Signed-off-by: Burt P --- modules/devices/spd-decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/devices/spd-decode.c') diff --git a/modules/devices/spd-decode.c b/modules/devices/spd-decode.c index 164ad9dc..b819c3cf 100644 --- a/modules/devices/spd-decode.c +++ b/modules/devices/spd-decode.c @@ -645,7 +645,7 @@ static void decode_ddr34_manufacturer(unsigned char count, unsigned char code, c return; } - *manufacturer = (char *)vendors[*bank][*index - 1]; + *manufacturer = (char *)JEDEC_MFG_STR(*bank, *index - 1); } static void decode_ddr3_manufacturer(unsigned char *bytes, char **manufacturer, int *bank, int *index) { @@ -677,7 +677,7 @@ static void decode_module_manufacturer(unsigned char *bytes, char **manufacturer goto end; } - out = (char *)vendors[ai - 1][(first & 0x7f) - 1]; + out = (char*)JEDEC_MFG_STR(ai - 1, (first & 0x7f) - 1); end: if (manufacturer) { *manufacturer = out; } -- cgit v1.2.3