From e5a4d52ea12c9c00c6a2911e3a4b3ea75f85fd3d Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 18 Jun 2020 20:48:43 +0100 Subject: [PATCH] trivial: Spelling fixes from codespell --- plugins/ccgx/fu-ccgx-dmc-common.h | 2 +- plugins/ccgx/fu-ccgx-dmc-firmware.c | 2 +- plugins/ccgx/fu-ccgx-firmware.c | 2 +- plugins/ccgx/fu-ccgx-hpi-common.h | 8 ++++---- plugins/dfu/dfu-device.c | 2 +- plugins/upower/fu-plugin-upower.c | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/ccgx/fu-ccgx-dmc-common.h b/plugins/ccgx/fu-ccgx-dmc-common.h index 767955d29..84523a2d7 100644 --- a/plugins/ccgx/fu-ccgx-dmc-common.h +++ b/plugins/ccgx/fu-ccgx-dmc-common.h @@ -211,7 +211,7 @@ typedef struct __attribute__((packed)) { /* component ID of the device */ guint8 component_id; /* image mode of the device - single image/ dual symmetric/ dual - * assymetric image > */ + * asymmetric image > */ guint8 image_mode; /* current running image */ guint8 current_image; diff --git a/plugins/ccgx/fu-ccgx-dmc-firmware.c b/plugins/ccgx/fu-ccgx-dmc-firmware.c index 9dc51f7cf..c2227a9ab 100644 --- a/plugins/ccgx/fu-ccgx-dmc-firmware.c +++ b/plugins/ccgx/fu-ccgx-dmc-firmware.c @@ -228,7 +228,7 @@ fu_ccgx_dmc_firmware_parse_image (FuFirmware *firmware, &seg_info_offset, error)) return FALSE; - /* add image record to image record arrary */ + /* add image record to image record array */ g_ptr_array_add (self->image_records, g_steal_pointer (&img_rcd)); /* increment image offset */ diff --git a/plugins/ccgx/fu-ccgx-firmware.c b/plugins/ccgx/fu-ccgx-firmware.c index d23ac0408..03ee7eab0 100644 --- a/plugins/ccgx/fu-ccgx-firmware.c +++ b/plugins/ccgx/fu-ccgx-firmware.c @@ -24,7 +24,7 @@ struct _FuCcgxFirmware { G_DEFINE_TYPE (FuCcgxFirmware, fu_ccgx_firmware, FU_TYPE_FIRMWARE) -/* offset stored appication version for CCGx */ +/* offset stored application version for CCGx */ #define CCGX_APP_VERSION_OFFSET 228 /* 128+64+32+4 */ GPtrArray * diff --git a/plugins/ccgx/fu-ccgx-hpi-common.h b/plugins/ccgx/fu-ccgx-hpi-common.h index 03ab220f5..4812f4d36 100644 --- a/plugins/ccgx/fu-ccgx-hpi-common.h +++ b/plugins/ccgx/fu-ccgx-hpi-common.h @@ -40,19 +40,19 @@ typedef enum { CY_GET_SIGNATURE_CMD = 0xBD, /* get the signature of the firmware * It is suppose to be 'CYUS' for normal firmware * and 'CYBL' for Bootloader */ - CY_UART_GET_CONFIG_CMD = 0xC0, /* retreive the 16 byte UART configuration information + CY_UART_GET_CONFIG_CMD = 0xC0, /* retrieve the 16 byte UART configuration information * MS bit of value indicates the SCB index * length = 16, data_in = 16 byte configuration */ CY_UART_SET_CONFIG_CMD, /* update the 16 byte UART configuration information * MS bit of value indicates the SCB index. * length = 16, data_out = 16 byte configuration information */ - CY_SPI_GET_CONFIG_CMD, /* retreive the 16 byte SPI configuration information + CY_SPI_GET_CONFIG_CMD, /* retrieve the 16 byte SPI configuration information * MS bit of value indicates the SCB index * length = 16, data_in = 16 byte configuration */ CY_SPI_SET_CONFIG_CMD, /* update the 16 byte SPI configuration information * MS bit of value indicates the SCB index * length = 16, data_out = 16 byte configuration information */ - CY_I2C_GET_CONFIG_CMD, /* retreive the 16 byte I2C configuration information + CY_I2C_GET_CONFIG_CMD, /* retrieve the 16 byte I2C configuration information * MS bit of value indicates the SCB index * length = 16, data_in = 16 byte configuration */ CY_I2C_SET_CONFIG_CMD = 0xC5, /* update the 16 byte I2C configuration information @@ -66,7 +66,7 @@ typedef enum { * value = bit0 - start, bit1 - stop, bit2 - Nak last byte, * bit3 - start on idle, bits[14:8] - slave address, bit15 - scbIndex, * length = 0. The data is provided over the bulk endpoints */ - CY_I2C_GET_STATUS_CMD, /* retreive the I2C bus status. + CY_I2C_GET_STATUS_CMD, /* retrieve the I2C bus status. * value = bit0 - 0: TX 1: RX, bit15 - scbIndex, length = 3, * data_in = byte0: bit0 - flag, bit1 - bus_state, bit2 - SDA state, * bit3 - TX underflow, bit4 - arbitration error, bit5 - NAK diff --git a/plugins/dfu/dfu-device.c b/plugins/dfu/dfu-device.c index 9e4c31f8d..2138f5a46 100644 --- a/plugins/dfu/dfu-device.c +++ b/plugins/dfu/dfu-device.c @@ -874,7 +874,7 @@ dfu_device_refresh (DfuDevice *device, GError **error) /* Device that cannot communicate via the USB after the * Manifestation phase indicated this limitation to the * host by clearing bmAttributes bit bitManifestationTolerant. - * so we assume the operation was succesful */ + * so we assume the operation was successful */ if (priv->state == DFU_STATE_DFU_MANIFEST && !(priv->attributes & DFU_DEVICE_ATTRIBUTE_MANIFEST_TOL)) return TRUE; diff --git a/plugins/upower/fu-plugin-upower.c b/plugins/upower/fu-plugin-upower.c index 4f882ab94..25546c229 100644 --- a/plugins/upower/fu-plugin-upower.c +++ b/plugins/upower/fu-plugin-upower.c @@ -158,7 +158,7 @@ fu_plugin_update_prepare (FuPlugin *plugin, return FALSE; } - /* deteremine if battery high enough */ + /* determine if battery high enough */ if (!fu_plugin_upower_check_percentage_level (plugin) && (flags & FWUPD_INSTALL_FLAG_FORCE) == 0) { FuPluginData *data = fu_plugin_get_data (plugin);