summaryrefslogtreecommitdiff
path: root/src/host/hub.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2022-03-17 22:37:51 +0700
committerhathach <[email protected]>2022-03-17 22:37:51 +0700
commitf89ff939d8088135cedaa4e4f3885f88d1670529 (patch)
tree9f9bda7cd36da7e79891d419e8290584244ac535 /src/host/hub.h
parent9dd2f11f4a08c337096776eacd919faec3cc939e (diff)
rename user_arg to user_data
Diffstat (limited to 'src/host/hub.h')
-rw-r--r--src/host/hub.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/host/hub.h b/src/host/hub.h
index e5e22102a..390740e1f 100644
--- a/src/host/hub.h
+++ b/src/host/hub.h
@@ -173,31 +173,31 @@ TU_VERIFY_STATIC( sizeof(hub_port_status_response_t) == 4, "size is not correct"
// Clear feature
bool hub_port_clear_feature (uint8_t hub_addr, uint8_t hub_port, uint8_t feature,
- tuh_xfer_cb_t complete_cb, uintptr_t user_arg);
+ tuh_xfer_cb_t complete_cb, uintptr_t user_data);
// Set feature
bool hub_port_set_feature (uint8_t hub_addr, uint8_t hub_port, uint8_t feature,
- tuh_xfer_cb_t complete_cb, uintptr_t user_arg);
+ tuh_xfer_cb_t complete_cb, uintptr_t user_data);
// Get port status
bool hub_port_get_status (uint8_t hub_addr, uint8_t hub_port, void* resp,
- tuh_xfer_cb_t complete_cb, uintptr_t user_arg);
+ tuh_xfer_cb_t complete_cb, uintptr_t user_data);
// Get status from Interrupt endpoint
bool hub_edpt_status_xfer(uint8_t dev_addr);
// Reset a port
static inline bool hub_port_reset(uint8_t hub_addr, uint8_t hub_port,
- tuh_xfer_cb_t complete_cb, uintptr_t user_arg)
+ tuh_xfer_cb_t complete_cb, uintptr_t user_data)
{
- return hub_port_set_feature(hub_addr, hub_port, HUB_FEATURE_PORT_RESET, complete_cb, user_arg);
+ return hub_port_set_feature(hub_addr, hub_port, HUB_FEATURE_PORT_RESET, complete_cb, user_data);
}
// Clear Reset Change
static inline bool hub_port_clear_reset_change(uint8_t hub_addr, uint8_t hub_port,
- tuh_xfer_cb_t complete_cb, uintptr_t user_arg)
+ tuh_xfer_cb_t complete_cb, uintptr_t user_data)
{
- return hub_port_clear_feature(hub_addr, hub_port, HUB_FEATURE_PORT_RESET_CHANGE, complete_cb, user_arg);
+ return hub_port_clear_feature(hub_addr, hub_port, HUB_FEATURE_PORT_RESET_CHANGE, complete_cb, user_data);
}