util/nvmutil: no designated initialisers in op

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-03-03 15:04:39 +00:00
parent 5517cf923b
commit a8a9ce32f1
+6 -12
View File
@@ -82,18 +82,12 @@ typedef struct op {
int args; int args;
} op_t; } op_t;
op_t op[] = { op_t op[] = {
{ .str = "dump", { "dump", cmd_dump, 3 },
.cmd = cmd_dump, .args = 3 }, { "setmac", cmd_setmac, 3 },
{ .str = "setmac", { "swap", cmd_swap, 3 },
.cmd = cmd_setmac, .args = 3 }, { "copy", cmd_copy, 4 },
{ .str = "swap", { "brick", cmd_brick, 4 },
.cmd = cmd_swap, .args = 3 }, { "setchecksum", cmd_setchecksum, 4 },
{ .str = "copy",
.cmd = cmd_copy, .args = 4 },
{ .str = "brick",
.cmd = cmd_brick, .args = 4 },
{ .str = "setchecksum",
.cmd = cmd_setchecksum, .args = 4 },
}; };
void (*cmd)(void) = NULL; void (*cmd)(void) = NULL;