Skip to content

Commit

Permalink
feat(cmock): Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-marcisovsky committed Oct 31, 2024
1 parent 74598f7 commit 18abe05
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions host/class/hid/usb_host_hid/hid_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,40 +293,40 @@ static bool hid_interface_present(const usb_config_desc_t *config_desc)
/**
* @brief HID Interface user callback function.
*
* @param[in] hid_iface Pointer to an Interface structure
* @param[in] event_id HID Interface event
* @param[in] iface Pointer to an Interface structure
* @param[in] event HID Interface event
*/
static inline void hid_host_user_interface_callback(hid_iface_t *hid_iface,
static inline void hid_host_user_interface_callback(hid_iface_t *iface,
const hid_host_interface_event_t event)
{
assert(hid_iface);
assert(iface);

hid_host_dev_params_t *dev_params = &hid_iface->dev_params;
hid_host_dev_params_t *dev_params = &iface->dev_params;

assert(dev_params);

if (hid_iface->user_cb) {
hid_iface->user_cb(hid_iface, event, hid_iface->user_cb_arg);
if (iface->user_cb) {
iface->user_cb(iface, event, iface->user_cb_arg);
}
}

/**
* @brief HID Device user callback function.
*
* @param[in] event_id HID Device event
* @param[in] dev_params HID Device parameters
* @param[in] iface Pointer to an Interface structure
* @param[in] event HID Device event
*/
static inline void hid_host_user_device_callback(hid_iface_t *hid_iface,
static inline void hid_host_user_device_callback(hid_iface_t *iface,
const hid_host_driver_event_t event)
{
assert(hid_iface);
assert(iface);

hid_host_dev_params_t *dev_params = &hid_iface->dev_params;
hid_host_dev_params_t *dev_params = &iface->dev_params;

assert(dev_params);

if (s_hid_driver && s_hid_driver->user_cb) {
s_hid_driver->user_cb(hid_iface, event, s_hid_driver->user_arg);
s_hid_driver->user_cb(iface, event, s_hid_driver->user_arg);
}
}

Expand Down Expand Up @@ -393,14 +393,14 @@ static esp_err_t hid_host_add_interface(hid_device_t *hid_device,
*
* Use only inside critical section
*
* @param[in] hid_iface HID interface handle
* @param[in] iface HID interface handle
* @return esp_err_t
*/
static esp_err_t _hid_host_remove_interface(hid_iface_t *hid_iface)
static esp_err_t _hid_host_remove_interface(hid_iface_t *iface)
{
hid_iface->state = HID_INTERFACE_STATE_NOT_INITIALIZED;
STAILQ_REMOVE(&s_hid_driver->hid_ifaces_tailq, hid_iface, hid_interface, tailq_entry);
free(hid_iface);
iface->state = HID_INTERFACE_STATE_NOT_INITIALIZED;
STAILQ_REMOVE(&s_hid_driver->hid_ifaces_tailq, iface, hid_interface, tailq_entry);
free(iface);
return ESP_OK;
}

Expand Down Expand Up @@ -829,7 +829,7 @@ static esp_err_t usb_class_request_get_descriptor(hid_device_t *hid_device, cons
/**
* @brief HID Host Request Report Descriptor
*
* @param[in] hid_iface Pointer to HID Interface configuration structure
* @param[in] iface Pointer to HID Interface configuration structure
* @return esp_err_t
*/
static esp_err_t hid_class_request_report_descriptor(hid_iface_t *iface)
Expand Down

0 comments on commit 18abe05

Please sign in to comment.