mirror of
https://github.com/DigitalDevices/dddvb.git
synced 2023-10-10 13:37:43 +02:00
old GCC does not like init in struct
This commit is contained in:
parent
1598ab98bc
commit
c82c9d3218
@ -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)
|
int mci_cmd_val(struct ddb_link *link, uint32_t cmd, uint32_t val)
|
||||||
{
|
{
|
||||||
struct mci_result result;
|
struct mci_result result;
|
||||||
|
#if 0
|
||||||
struct mci_command command = {
|
struct mci_command command = {
|
||||||
.command_word = cmd,
|
.command_word = cmd,
|
||||||
.params = { val },
|
.params = { val },
|
||||||
};
|
};
|
||||||
|
#else
|
||||||
|
struct mci_command command;
|
||||||
|
|
||||||
|
command.command_word = cmd;
|
||||||
|
command.params[0] = val;
|
||||||
|
#endif
|
||||||
return ddb_mci_cmd_link(link, &command, &result);
|
return ddb_mci_cmd_link(link, &command, &result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user