From 3e8d2cbe8b4e1bcd17e76fed71fb01bde02d14f7 Mon Sep 17 00:00:00 2001 From: Maciej Pijanowski Date: Wed, 20 Sep 2023 11:19:47 +0200 Subject: [PATCH] tree-wide: fix typos from codespell Signed-off-by: Maciej Pijanowski --- build.sh | 2 +- doc/README.md | 2 +- doc/keyboard-layout-customization.md | 2 +- scripts/coccinelle/macros.h | 2 +- src/board/system76/common/flash/main.c | 4 ++-- src/ec/ite/i2c.c | 4 ++-- tool/src/lib.rs | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/build.sh b/build.sh index 34b174d..d6ce5c2 100755 --- a/build.sh +++ b/build.sh @@ -72,7 +72,7 @@ fi docker run --rm -v "$PWD":"$PWD" -w "$PWD" -u "$(id -u)" \ ghcr.io/dasharo/ec-sdk:main make BOARD="${EC_BOARD_VENDOR}/${EC_BOARD_MODEL}" -errorCheck "Failed to build EC fimware" +errorCheck "Failed to build EC firmware" cp "$EC_ROM" "$EC_ARTIFACT" errorCheck "Failed to rename EC firmware" diff --git a/doc/README.md b/doc/README.md index 4e8b774..366932c 100644 --- a/doc/README.md +++ b/doc/README.md @@ -1,4 +1,4 @@ -# System76 EC documetation +# System76 EC documentation ## TODO diff --git a/doc/keyboard-layout-customization.md b/doc/keyboard-layout-customization.md index f909677..97b63c7 100644 --- a/doc/keyboard-layout-customization.md +++ b/doc/keyboard-layout-customization.md @@ -1,6 +1,6 @@ # Keyboard layout customization -System76 EC firmware suppports using custom keyboard layouts. For example, +System76 EC firmware supports using custom keyboard layouts. For example, having the physical "Caps Lock" key function as "Escape" when pressed. This only applies to the internal keyboard. External keyboards are not diff --git a/scripts/coccinelle/macros.h b/scripts/coccinelle/macros.h index c5e5493..7a46588 100644 --- a/scripts/coccinelle/macros.h +++ b/scripts/coccinelle/macros.h @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-3.0-only -// SDCC extenstions that need to be defined away for spatch +// SDCC extensions that need to be defined away for spatch #define __at(x) #define __code diff --git a/src/board/system76/common/flash/main.c b/src/board/system76/common/flash/main.c index ade8b98..a742a1d 100644 --- a/src/board/system76/common/flash/main.c +++ b/src/board/system76/common/flash/main.c @@ -43,10 +43,10 @@ void flash_write_enable(void); * NOTE: This *must* be the first function in this file to ensure that it is placed * first in the resulting binary. This is required to ensure that address * matches the address (FLASH_OFFSET) for flash_entry in wrapper.c. - * NOTE: __reentrant so that parameters and temperary vairables are placed on the + * NOTE: __reentrant so that parameters and temporary variables are placed on the * stack, ensuring the main application __data variables are not stomped on. * NOTE: __critical to ensure interrupts are disabled. This does mean that interrupt - * such as the timer will be block until flash acccess is complete + * such as the timer will be block until flash access is complete */ // clang-format off void flash_entry(uint32_t addr, uint8_t *data, uint32_t length, uint8_t command) __reentrant __critical { diff --git a/src/ec/ite/i2c.c b/src/ec/ite/i2c.c index 30f4ae6..c1ef73d 100644 --- a/src/ec/ite/i2c.c +++ b/src/ec/ite/i2c.c @@ -129,7 +129,7 @@ static int16_t i2c_transaction(struct I2C *i2c, uint8_t *data, uint16_t length, uint32_t timeout = I2C_TIMEOUT; for (timeout = I2C_TIMEOUT; timeout > 0; timeout--) { status = *(i2c->hosta); - // If error occured, kill transaction and return error + // If error occurred, kill transaction and return error if (status & HOSTA_ERR) { i2c_reset(i2c, true); return -(int16_t)(status); @@ -139,7 +139,7 @@ static int16_t i2c_transaction(struct I2C *i2c, uint8_t *data, uint16_t length, break; } } - // If timeout occured, kill transaction and return error + // If timeout occurred, kill transaction and return error if (timeout == 0) { i2c_reset(i2c, true); return -(0x1000 | (int16_t)status); diff --git a/tool/src/lib.rs b/tool/src/lib.rs index 5afcac4..c764447 100644 --- a/tool/src/lib.rs +++ b/tool/src/lib.rs @@ -2,7 +2,7 @@ //! Library for accessing System76 ECs //! First, construct an access method, using an object implementing the `Access` trait. Next, an Ec -//! object can be contructed, which exposes the command interface. +//! object can be constructed, which exposes the command interface. //! //! There are some differences between targets and features that are listed below: //! - `AccessHid` requires the `hidapi` feature. Only functional on USB ECs.