From 4c162af6c94ced09fcdf57c50098596cc189fcec Mon Sep 17 00:00:00 2001 From: Roman Leonov Date: Mon, 9 Jan 2023 15:49:25 +0100 Subject: [PATCH] usb_host: license and typos fixes --- .../usb/host/hid/components/hid/hid_host.c | 12 ++++++------ .../usb/host/hid/components/hid/include/hid.h | 2 +- .../hid/components/hid/include/hid_usage_keyboard.h | 2 +- .../hid/components/hid/include/hid_usage_mouse.h | 2 +- .../hid/test_apps/hid_basic/main/test_app_main.c | 2 +- .../hid/test_apps/hid_basic/main/test_hid_basic.c | 2 +- .../hid/test_apps/hid_basic/main/test_hid_basic.h | 2 +- .../test_apps/hid_basic/main/test_hid_err_handling.c | 2 +- .../test_apps/hid_basic/main/test_hid_usb_driver.c | 2 +- .../peripherals/usb/host/hid/main/hid_host_example.c | 4 ++-- 10 files changed, 16 insertions(+), 16 deletions(-) diff --git a/examples/peripherals/usb/host/hid/components/hid/hid_host.c b/examples/peripherals/usb/host/hid/components/hid/hid_host.c index f0a2459d40..751f9e34a6 100644 --- a/examples/peripherals/usb/host/hid/components/hid/hid_host.c +++ b/examples/peripherals/usb/host/hid/components/hid/hid_host.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -113,7 +113,7 @@ STAILQ_HEAD(interfaces, hid_interface) ifaces_tailq; * * @param[in] desc Pointer to Descriptor buffer (usually starts from Configuration descriptor) * @param[in] len Total length - * @param[in] offset Pointer to offset DEscriptor buffer + * @param[in] offset Pointer to offset descriptor buffer * @return const usb_standard_desc_t* Pointer to Interface descriptor */ static inline const usb_standard_desc_t *next_interface_desc(const usb_standard_desc_t *desc, size_t len, size_t *offset) @@ -509,11 +509,11 @@ static void client_event_cb(const usb_host_client_event_msg_t *event, void *arg) } else if (event->event == USB_HOST_CLIENT_EVENT_DEV_GONE) { hid_device_t *hid_device = get_hid_device_by_handle(event->dev_gone.dev_hdl); if (hid_device) { - const hid_host_event_t msc_event = { + const hid_host_event_t hid_event = { .event = HID_DEVICE_DISCONNECTED, .device.handle = hid_device, }; - s_hid_driver->user_cb(&msc_event, s_hid_driver->user_arg); + s_hid_driver->user_cb(&hid_event, s_hid_driver->user_arg); } } } @@ -585,7 +585,7 @@ static bool transfer_complete_status_verify(usb_transfer_t *transfer) case USB_TRANSFER_STATUS_OVERFLOW: case USB_TRANSFER_STATUS_SKIPPED: default: - // Transfer was not completed or cancelled by user. + // Transfer was not completed or canceled by user. ESP_LOGE(TAG, "Transfer failed, status %d", transfer->status); } return completed; @@ -975,7 +975,7 @@ esp_err_t hid_host_claim_interface(const hid_host_interface_config_t *iface_conf return ESP_ERR_NOT_FOUND; } - // Interface alredy claimed + // Interface already claimed if (iface->report_cb != NULL) { return ESP_ERR_INVALID_STATE; } diff --git a/examples/peripherals/usb/host/hid/components/hid/include/hid.h b/examples/peripherals/usb/host/hid/components/hid/include/hid.h index 7f6a99e6eb..13ef007495 100644 --- a/examples/peripherals/usb/host/hid/components/hid/include/hid.h +++ b/examples/peripherals/usb/host/hid/components/hid/include/hid.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/examples/peripherals/usb/host/hid/components/hid/include/hid_usage_keyboard.h b/examples/peripherals/usb/host/hid/components/hid/include/hid_usage_keyboard.h index 7683733be5..a740b90a07 100644 --- a/examples/peripherals/usb/host/hid/components/hid/include/hid_usage_keyboard.h +++ b/examples/peripherals/usb/host/hid/components/hid/include/hid_usage_keyboard.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/examples/peripherals/usb/host/hid/components/hid/include/hid_usage_mouse.h b/examples/peripherals/usb/host/hid/components/hid/include/hid_usage_mouse.h index 7f1b21012a..5ef01836ff 100644 --- a/examples/peripherals/usb/host/hid/components/hid/include/hid_usage_mouse.h +++ b/examples/peripherals/usb/host/hid/components/hid/include/hid_usage_mouse.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_app_main.c b/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_app_main.c index 3617b52f69..eff7b877c4 100644 --- a/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_app_main.c +++ b/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_app_main.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_basic.c b/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_basic.c index 66c0657bc0..3f972ffa62 100644 --- a/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_basic.c +++ b/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_basic.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_basic.h b/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_basic.h index ed7d84e2ed..9e6c8082df 100644 --- a/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_basic.h +++ b/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_basic.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_err_handling.c b/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_err_handling.c index 9d0fe8ef0c..84ac4688dd 100644 --- a/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_err_handling.c +++ b/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_err_handling.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_usb_driver.c b/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_usb_driver.c index 466f376d49..d4a7f980b8 100644 --- a/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_usb_driver.c +++ b/examples/peripherals/usb/host/hid/components/hid/test_apps/hid_basic/main/test_hid_usb_driver.c @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ diff --git a/examples/peripherals/usb/host/hid/main/hid_host_example.c b/examples/peripherals/usb/host/hid/main/hid_host_example.c index f64369dc0b..4f1f4cafca 100644 --- a/examples/peripherals/usb/host/hid/main/hid_host_example.c +++ b/examples/peripherals/usb/host/hid/main/hid_host_example.c @@ -1,7 +1,7 @@ /* - * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD * - * SPDX-License-Identifier: Apache-2.0 + * SPDX-License-Identifier: Unlicense OR CC0-1.0 */ #include