diff options
| author | Zixun LI <[email protected]> | 2026-02-22 13:33:29 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-22 13:33:29 +0100 |
| commit | e947af26c62fe8717f754e072a18e9e24f33ca96 (patch) | |
| tree | d5d17d57994d3ec2a3a2a18a71141f792c31063f /src/portable | |
| parent | b585df168a3489845cda3cb732560d4fe260e609 (diff) | |
Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
Diffstat (limited to 'src/portable')
| -rw-r--r-- | src/portable/synopsys/dwc2/hcd_dwc2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/portable/synopsys/dwc2/hcd_dwc2.c b/src/portable/synopsys/dwc2/hcd_dwc2.c index c9ea144c8..ac6fcceb1 100644 --- a/src/portable/synopsys/dwc2/hcd_dwc2.c +++ b/src/portable/synopsys/dwc2/hcd_dwc2.c @@ -395,7 +395,8 @@ static void dfifo_host_init(uint8_t rhport) { bool hcd_configure(uint8_t rhport, uint32_t cfg_id, const void* cfg_param) { (void) rhport; TU_VERIFY(cfg_id == TUH_CFGID_DWC2 && cfg_param != NULL); - _tuh_cfg = *(const tuh_configure_dwc2_t *)cfg_param; + tuh_configure_param_t const* cfg = (tuh_configure_param_t const*) cfg_param; + _tuh_cfg = cfg->dwc2; return true; } |
