@@ -36,7 +36,7 @@ extern "C" {
3636/**
3737 * USB host support runtime context
3838 */
39- struct usbh_contex {
39+ struct usbh_context {
4040 /** Name of the USB device */
4141 const char * name ;
4242 /** Access mutex */
@@ -53,7 +53,7 @@ struct usbh_contex {
5353
5454#define USBH_CONTROLLER_DEFINE (device_name , uhc_dev ) \
5555 SYS_BITARRAY_DEFINE_STATIC(ba_##device_name, 128); \
56- static STRUCT_SECTION_ITERABLE(usbh_contex , device_name) = { \
56+ static STRUCT_SECTION_ITERABLE(usbh_context , device_name) = { \
5757 .name = STRINGIFY(device_name), \
5858 .mutex = Z_MUTEX_INITIALIZER(device_name.mutex), \
5959 .dev = uhc_dev, \
@@ -80,20 +80,20 @@ struct usbh_class_data {
8080 struct usbh_code_triple code ;
8181
8282 /** Initialization of the class implementation */
83- /* int (*init)(struct usbh_contex *const uhs_ctx); */
83+ /* int (*init)(struct usbh_context *const uhs_ctx); */
8484 /** Request completion event handler */
85- int (* request )(struct usbh_contex * const uhs_ctx ,
85+ int (* request )(struct usbh_context * const uhs_ctx ,
8686 struct uhc_transfer * const xfer , int err );
8787 /** Device connected handler */
88- int (* connected )(struct usbh_contex * const uhs_ctx );
88+ int (* connected )(struct usbh_context * const uhs_ctx );
8989 /** Device removed handler */
90- int (* removed )(struct usbh_contex * const uhs_ctx );
90+ int (* removed )(struct usbh_context * const uhs_ctx );
9191 /** Bus remote wakeup handler */
92- int (* rwup )(struct usbh_contex * const uhs_ctx );
92+ int (* rwup )(struct usbh_context * const uhs_ctx );
9393 /** Bus suspended handler */
94- int (* suspended )(struct usbh_contex * const uhs_ctx );
94+ int (* suspended )(struct usbh_context * const uhs_ctx );
9595 /** Bus resumed handler */
96- int (* resumed )(struct usbh_contex * const uhs_ctx );
96+ int (* resumed )(struct usbh_context * const uhs_ctx );
9797};
9898
9999/**
@@ -109,7 +109,7 @@ struct usbh_class_data {
109109 *
110110 * @return 0 on success, other values on fail.
111111 */
112- int usbh_init (struct usbh_contex * uhs_ctx );
112+ int usbh_init (struct usbh_context * uhs_ctx );
113113
114114/**
115115 * @brief Enable the USB host support and class instances
@@ -120,7 +120,7 @@ int usbh_init(struct usbh_contex *uhs_ctx);
120120 *
121121 * @return 0 on success, other values on fail.
122122 */
123- int usbh_enable (struct usbh_contex * uhs_ctx );
123+ int usbh_enable (struct usbh_context * uhs_ctx );
124124
125125/**
126126 * @brief Disable the USB host support
@@ -131,7 +131,7 @@ int usbh_enable(struct usbh_contex *uhs_ctx);
131131 *
132132 * @return 0 on success, other values on fail.
133133 */
134- int usbh_disable (struct usbh_contex * uhs_ctx );
134+ int usbh_disable (struct usbh_context * uhs_ctx );
135135
136136/**
137137 * @brief Shutdown the USB host support
@@ -142,7 +142,7 @@ int usbh_disable(struct usbh_contex *uhs_ctx);
142142 *
143143 * @return 0 on success, other values on fail.
144144 */
145- int usbh_shutdown (struct usbh_contex * const uhs_ctx );
145+ int usbh_shutdown (struct usbh_context * const uhs_ctx );
146146
147147/**
148148 * @}
0 commit comments