diff options
| author | hathach <[email protected]> | 2024-10-11 17:53:39 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-10-11 17:53:39 +0700 |
| commit | 1587d48e89cbaa8d0d1c870809bc40c3c8d1056f (patch) | |
| tree | a01565a3ddfef6225497dc4e83ffc0fa93830ce2 /src/portable/ohci | |
| parent | f3b7d7515e9cae834013dc9ee3a67d87111090eb (diff) | |
hcd_init() take init struct
Diffstat (limited to 'src/portable/ohci')
| -rw-r--r-- | src/portable/ohci/ohci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/portable/ohci/ohci.c b/src/portable/ohci/ohci.c index c59d4755e..fbaa5208e 100644 --- a/src/portable/ohci/ohci.c +++ b/src/portable/ohci/ohci.c @@ -178,8 +178,8 @@ TU_ATTR_ALWAYS_INLINE static inline void *_virt_addr(void *physical_address) } // Initialization according to 5.1.1.4 -bool hcd_init(uint8_t rhport) -{ +bool hcd_init(const tusb_rhport_init_t* rh_init) { + const uint8_t rhport = rh_init->rhport; (void) rhport; //------------- Data Structure init -------------// |
