Skip to content

Commit 64037f6

Browse files
committed
refactor(ext_hub): Removed unused calls as hub driver doesn't have parent_dev_hdl
1 parent eb95c7d commit 64037f6

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

host/usb/private_include/ext_hub.h

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -82,19 +82,6 @@ void *ext_hub_get_client(void);
8282

8383
// -------------------------- External Hub API ---------------------------------
8484

85-
/**
86-
* @brief Get External Hub device handle by USBH device handle
87-
*
88-
* @param[in] dev_hdl USBH device handle
89-
* @param[out] ext_hub_hdl External Hub device handle
90-
*
91-
* @return
92-
* - ESP_OK: External Hub device handle successfully obtained
93-
* - ESP_ERR_INVALID_STATE: External Hub driver is not installed
94-
* - ESP_ERR_NOT_FOUND: Device not found
95-
*/
96-
esp_err_t ext_hub_get_handle(usb_device_handle_t dev_hdl, ext_hub_handle_t *ext_hub_hdl);
97-
9885
/**
9986
* @brief Add new device
10087
*

host/usb/src/ext_hub.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,14 +1215,6 @@ void *ext_hub_get_client(void)
12151215
// -------------------------- External Hub API ---------------------------------
12161216
// -----------------------------------------------------------------------------
12171217

1218-
esp_err_t ext_hub_get_handle(usb_device_handle_t dev_hdl, ext_hub_handle_t *ext_hub_hdl)
1219-
{
1220-
EXT_HUB_ENTER_CRITICAL();
1221-
EXT_HUB_CHECK_FROM_CRIT(p_ext_hub_driver != NULL, ESP_ERR_INVALID_STATE);
1222-
EXT_HUB_EXIT_CRITICAL();
1223-
return get_dev_by_hdl(dev_hdl, ext_hub_hdl);
1224-
}
1225-
12261218
static esp_err_t find_first_intf_desc(const usb_config_desc_t *config_desc, device_config_t *hub_config)
12271219
{
12281220
bool iface_found = false;

0 commit comments

Comments
 (0)