[device][mmcsd]:Fix AC5 anonymous struct

This commit is contained in:
CYFS 2026-08-07 17:27:36 +08:00
parent 9d04b6baab
commit d25865e517
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ union rt_sd_status {
rt_uint32_t : 7;
rt_uint32_t secured_mode: 1;
rt_uint32_t data_bus_width: 2;
};
} fields;
};
/*

View File

@ -744,7 +744,7 @@ static rt_int32_t mmcsd_sd_init_card(struct rt_mmcsd_host *host,
err = mmcsd_read_sd_status(card, sd_status.status_words);
if (err)
goto err1;
if ((sd_status.uhs_speed_grade > 0) && (ocr & VDD_165_195))
if ((sd_status.fields.uhs_speed_grade > 0) && (ocr & VDD_165_195))
{
/* Assume the card supports all UHS-I modes because we cannot find any mainstreaming card
* that can support only part of the following modes.