usb: fix common misspellings in USB support
Fix common misspellings in USB device next and host. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
41e9547ead
commit
e6bfc7f868
11 changed files with 13 additions and 13 deletions
|
@ -126,7 +126,7 @@ enum usbd_ch9_state {
|
|||
struct usbd_ch9_data {
|
||||
/** Setup packet, up-to-date for the respective control request */
|
||||
struct usb_setup_packet setup;
|
||||
/** Control type, internaly used for stage verification */
|
||||
/** Control type, internally used for stage verification */
|
||||
int ctrl_type;
|
||||
/** Protocol state of the USB device stack */
|
||||
enum usbd_ch9_state state;
|
||||
|
@ -183,7 +183,7 @@ struct usbd_contex {
|
|||
* @brief Vendor Requests Table
|
||||
*/
|
||||
struct usbd_cctx_vendor_req {
|
||||
/** Array of vendor requests supportd by the class */
|
||||
/** Array of vendor requests supported by the class */
|
||||
const uint8_t *reqs;
|
||||
/** Length of the array */
|
||||
uint8_t len;
|
||||
|
|
|
@ -16,7 +16,7 @@ LOG_MODULE_REGISTER(usb_loopback, CONFIG_USBD_LOOPBACK_LOG_LEVEL);
|
|||
* interface and endpoint configuration.
|
||||
*/
|
||||
|
||||
/* Internal buffer for intermidiate test data */
|
||||
/* Internal buffer for intermediate test data */
|
||||
static uint8_t lb_buf[1024];
|
||||
|
||||
#define LB_VENDOR_REQ_OUT 0x5b
|
||||
|
|
|
@ -459,7 +459,7 @@ static int fill_inquiry(struct scsi_ctx *ctx,
|
|||
|
||||
memset(&r, 0, sizeof(struct scsi_inquiry_response));
|
||||
|
||||
/* Accesible; Direct access block device (SBC) */
|
||||
/* Accessible; Direct access block device (SBC) */
|
||||
r.peripheral = 0x00;
|
||||
/* Removable; not a part of conglomerate. Note that when device is
|
||||
* accessible via USB Mass Storage, it should always be marked as
|
||||
|
@ -526,7 +526,7 @@ static int fill_vpd_page(struct scsi_ctx *ctx, enum vpd_page_code page,
|
|||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
/* Accesible; Direct access block device (SBC) */
|
||||
/* Accessible; Direct access block device (SBC) */
|
||||
buf[0] = 0x00;
|
||||
buf[1] = page;
|
||||
sys_put_be16(offset, &buf[2]);
|
||||
|
|
|
@ -131,7 +131,7 @@ usbd_get_setup_pkt(struct usbd_contex *const uds_ctx)
|
|||
*
|
||||
* @param[in] uds_ctx Pointer to a device context
|
||||
* @param[in] buf Pointer to UDC request buffer
|
||||
* @param[in] err Trasnfer status
|
||||
* @param[in] err Transfer status
|
||||
*
|
||||
* @return 0 on success, other values on fail.
|
||||
*/
|
||||
|
|
|
@ -313,7 +313,7 @@ int usbd_register_class(struct usbd_contex *const uds_ctx,
|
|||
|
||||
/* TODO: does it still need to be atomic ? */
|
||||
if (atomic_test_bit(&data->state, USBD_CCTX_REGISTERED)) {
|
||||
LOG_WRN("Class instance allready registered");
|
||||
LOG_WRN("Class instance already registered");
|
||||
ret = -EBUSY;
|
||||
goto register_class_error;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
*
|
||||
* @param[in] uds_ctx Pointer to device context
|
||||
* @param[in] buf Pointer to UDC request buffer
|
||||
* @param[in] err Trasnfer status
|
||||
* @param[in] err Transfer status
|
||||
*
|
||||
* @return usbd_class_request() return value
|
||||
*/
|
||||
|
|
|
@ -190,7 +190,7 @@ static inline void usbd_class_resumed(struct usbd_class_node *const node)
|
|||
}
|
||||
|
||||
/**
|
||||
* @brief Class associated configuration activ handler
|
||||
* @brief Class associated configuration active handler
|
||||
*
|
||||
* @note The execution of the handler must not block.
|
||||
*
|
||||
|
|
|
@ -68,7 +68,7 @@ static void usbd_ascii7_to_utf16le(struct usbd_desc_node *const dn)
|
|||
/**
|
||||
* @brief Get common USB descriptor
|
||||
*
|
||||
* Get descriptor from internal descrptor list.
|
||||
* Get descriptor from internal descriptor list.
|
||||
*
|
||||
* @param[in] dn Pointer to descriptor node
|
||||
*
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
/**
|
||||
* @brief Get common USB descriptor
|
||||
*
|
||||
* Get descriptor from internal descrptor list.
|
||||
* Get descriptor from internal descriptor list.
|
||||
*
|
||||
* @param[in] ctx Pointer to USB device support context
|
||||
* @param[in] type Descriptor type (bDescriptorType)
|
||||
|
|
|
@ -72,7 +72,7 @@ static int ALWAYS_INLINE usbh_event_handler(struct usbh_contex *const ctx,
|
|||
}
|
||||
break;
|
||||
case UHC_EVT_RESETED:
|
||||
LOG_DBG("Bus reseted");
|
||||
LOG_DBG("Bus reset");
|
||||
/* TODO */
|
||||
if (class_data && class_data->removed) {
|
||||
ret = class_data->removed(ctx);
|
||||
|
|
|
@ -510,7 +510,7 @@ static int cmd_bus_reset(const struct shell *sh,
|
|||
if (err) {
|
||||
shell_error(sh, "host: Failed to perform bus reset %d", err);
|
||||
} else {
|
||||
shell_print(sh, "host: USB bus reseted");
|
||||
shell_print(sh, "host: USB bus reset");
|
||||
}
|
||||
|
||||
err = uhc_sof_enable(uhs_ctx.dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue