old GCC does not like init in struct

This commit is contained in:
none 2021-02-24 20:22:08 +01:00
parent 1598ab98bc
commit c82c9d3218
1 changed files with 6 additions and 0 deletions

View File

@ -170,11 +170,17 @@ int mci_init(struct ddb_link *link)
int mci_cmd_val(struct ddb_link *link, uint32_t cmd, uint32_t val)
{
struct mci_result result;
#if 0
struct mci_command command = {
.command_word = cmd,
.params = { val },
};
#else
struct mci_command command;
command.command_word = cmd;
command.params[0] = val;
#endif
return ddb_mci_cmd_link(link, &command, &result);
}