Skip to content

Commit aafea8e

Browse files
committed
Hub: Rename port status callback to be more generic
1 parent 5efef43 commit aafea8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/host/hub.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ static void config_port_power_complete (tuh_xfer_t* xfer)
313313
// Connection Changes
314314
//--------------------------------------------------------------------+
315315

316-
static void connection_get_status_complete (tuh_xfer_t* xfer);
316+
static void hub_port_get_status_complete (tuh_xfer_t* xfer);
317317
static void connection_clear_conn_change_complete (tuh_xfer_t* xfer);
318318
static void connection_port_reset_complete (tuh_xfer_t* xfer);
319319

@@ -333,7 +333,7 @@ bool hub_xfer_cb(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t result, uint32
333333
{
334334
if ( tu_bit_test(p_hub->status_change, port) )
335335
{
336-
if (hub_port_get_status(dev_addr, port, &p_hub->port_status, connection_get_status_complete, 0) == false)
336+
if (hub_port_get_status(dev_addr, port, &p_hub->port_status, hub_port_get_status_complete, 0) == false)
337337
{
338338
//Hub status control transfer failed, retry
339339
hub_edpt_status_xfer(dev_addr);
@@ -347,7 +347,7 @@ bool hub_xfer_cb(uint8_t dev_addr, uint8_t ep_addr, xfer_result_t result, uint32
347347
return true;
348348
}
349349

350-
static void connection_get_status_complete (tuh_xfer_t* xfer)
350+
static void hub_port_get_status_complete (tuh_xfer_t* xfer)
351351
{
352352
TU_ASSERT(xfer->result == XFER_RESULT_SUCCESS, );
353353

0 commit comments

Comments
 (0)