summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCédric Berger <[email protected]>2026-02-19 23:30:25 +0100
committerCédric Berger <[email protected]>2026-02-19 23:30:25 +0100
commit7e6177097166073579418ce1ff98aa2185f48396 (patch)
tree944e207d2cab5378e7966e1008d3cc0f2a977a5b /src
parentc8265a3709ebe6b5f77aa3b5bb148740c5818f00 (diff)
Fix a couple indentations
Diffstat (limited to 'src')
-rw-r--r--src/portable/synopsys/dwc2/dwc2_common.c12
-rw-r--r--src/portable/synopsys/dwc2/hcd_dwc2.c8
2 files changed, 10 insertions, 10 deletions
diff --git a/src/portable/synopsys/dwc2/dwc2_common.c b/src/portable/synopsys/dwc2/dwc2_common.c
index 429c56123..8c2324283 100644
--- a/src/portable/synopsys/dwc2/dwc2_common.c
+++ b/src/portable/synopsys/dwc2/dwc2_common.c
@@ -188,12 +188,12 @@ bool dwc2_core_is_highspeed_phy(dwc2_regs_t* dwc2, tusb_role_t role) {
#endif
#if CFG_TUH_ENABLED
if (role == TUSB_ROLE_HOST) {
- if (_hcd_cfg_phy_speed == TUSB_SPEED_HIGH)
- return true;
- if (_hcd_cfg_phy_speed < TUSB_SPEED_HIGH)
- return false;
- if (!TUH_OPT_HIGH_SPEED)
- return false;
+ if (_hcd_cfg_phy_speed == TUSB_SPEED_HIGH)
+ return true;
+ if (_hcd_cfg_phy_speed < TUSB_SPEED_HIGH)
+ return false;
+ if (!TUH_OPT_HIGH_SPEED)
+ return false;
}
#endif
diff --git a/src/portable/synopsys/dwc2/hcd_dwc2.c b/src/portable/synopsys/dwc2/hcd_dwc2.c
index 99be779ef..9f8133196 100644
--- a/src/portable/synopsys/dwc2/hcd_dwc2.c
+++ b/src/portable/synopsys/dwc2/hcd_dwc2.c
@@ -429,11 +429,11 @@ bool hcd_init(uint8_t rhport, const tusb_rhport_init_t* rh_init) {
#endif
if (highspeed_phy && rh_init->speed < TUSB_SPEED_HIGH) {
- // disable high speed mode
- dwc2->hcfg |= HCFG_FSLS_ONLY;
+ // disable high speed mode
+ dwc2->hcfg |= HCFG_FSLS_ONLY;
} else {
- // work at max supported speed
- dwc2->hcfg &= ~HCFG_FSLS_ONLY;
+ // work at max supported speed
+ dwc2->hcfg &= ~HCFG_FSLS_ONLY;
}
// configure fixed-allocated fifo scheme