bsps/powerpc/shared/start/vpd.c: Eliminate obsolete syntax

Structure Designated initializers must use ".field = value" instead
of obsolete "field : value" syntax.
This commit is contained in:
Joel Sherrill
2026-04-21 16:28:02 -05:00
parent 8a92174bd6
commit 5b6451729c
+5 -1
View File
@@ -226,7 +226,11 @@ int
BSP_vpdRetrieveKey(VpdKey k, void *buf, int len, int inst)
{
VpdBufRec d[] = {
{ key: k, buf: buf, buflen: len, instance: inst },
{ .key = k,
.buf = buf,
.buflen = len,
.instance = inst
},
VPD_END
};
return BSP_vpdRetrieveFields(d) ? -1 : d[0].found;