diff options
author | Tom Hughes <tomhughes@chromium.org> | 2019-05-31 08:42:28 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-19 16:16:44 +0000 |
commit | 4309ccb95ed6eb10770de6f2fe9abb2dd979e99b (patch) | |
tree | f1c398baf8c6748c606693bb0e90baec09bdf0e3 /chip/stm32 | |
parent | de2a794a228ea8aa86f4d4c5c21c99150f4688f6 (diff) | |
download | chrome-ec-4309ccb95ed6eb10770de6f2fe9abb2dd979e99b.tar.gz |
cleanup: Fix common spelling typos in comments
Used 'git grep' to fix the following misspelled words across the
codebase:
* recieved
* recieving
* delaraction
* finctionality
* lastest
* permanenlty
* Callabck
BRANCH=none
BUG=none
TEST=make buildall -j
Change-Id: I68ec9c8b967941041e46ff3ed3549ab2a06604ac
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1636848
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'chip/stm32')
-rw-r--r-- | chip/stm32/clock-f.h | 2 | ||||
-rw-r--r-- | chip/stm32/dma-stm32f4.c | 2 | ||||
-rw-r--r-- | chip/stm32/dma.c | 2 | ||||
-rw-r--r-- | chip/stm32/flash-stm32f3.c | 2 | ||||
-rw-r--r-- | chip/stm32/i2c-stm32f4.c | 2 | ||||
-rw-r--r-- | chip/stm32/power_led.c | 2 | ||||
-rw-r--r-- | chip/stm32/spi.c | 6 | ||||
-rw-r--r-- | chip/stm32/usart.h | 2 | ||||
-rw-r--r-- | chip/stm32/usb_console.c | 2 |
9 files changed, 11 insertions, 11 deletions
diff --git a/chip/stm32/clock-f.h b/chip/stm32/clock-f.h index 942567ec51..4662b043cb 100644 --- a/chip/stm32/clock-f.h +++ b/chip/stm32/clock-f.h @@ -82,7 +82,7 @@ uint32_t get_rtc_alarm(void); /* RTC init */ void rtc_init(void); -/* Init clock blocks and finctionality */ +/* Init clock blocks and functionality */ void clock_init(void); /* Init high speed clock config */ diff --git a/chip/stm32/dma-stm32f4.c b/chip/stm32/dma-stm32f4.c index cdd3f54dd9..a821ee3d08 100644 --- a/chip/stm32/dma-stm32f4.c +++ b/chip/stm32/dma-stm32f4.c @@ -112,7 +112,7 @@ static void prepare_stream(enum dma_channel stream, unsigned count, void dma_go(stm32_dma_stream_t *stream) { - /* Flush data in write buffer so that DMA can get the lastest data */ + /* Flush data in write buffer so that DMA can get the latest data */ asm volatile("dsb;"); /* Fire it up */ diff --git a/chip/stm32/dma.c b/chip/stm32/dma.c index 11f65ecac2..031b8566bd 100644 --- a/chip/stm32/dma.c +++ b/chip/stm32/dma.c @@ -124,7 +124,7 @@ static void prepare_channel(enum dma_channel channel, unsigned count, void dma_go(stm32_dma_chan_t *chan) { - /* Flush data in write buffer so that DMA can get the lastest data */ + /* Flush data in write buffer so that DMA can get the latest data */ asm volatile("dsb;"); /* Fire it up */ diff --git a/chip/stm32/flash-stm32f3.c b/chip/stm32/flash-stm32f3.c index ab505a082b..f0c8028f61 100644 --- a/chip/stm32/flash-stm32f3.c +++ b/chip/stm32/flash-stm32f3.c @@ -115,7 +115,7 @@ int flash_physical_protect_now(int all) * doing this. * * This incorrect key fault causes the flash to become - * permanenlty locked until reset, a correct keyring write + * permanently locked until reset, a correct keyring write * will not unlock it. In this way we can implement system * write protect. */ diff --git a/chip/stm32/i2c-stm32f4.c b/chip/stm32/i2c-stm32f4.c index d9c331237c..ee6460936c 100644 --- a/chip/stm32/i2c-stm32f4.c +++ b/chip/stm32/i2c-stm32f4.c @@ -73,7 +73,7 @@ static const struct dma_option dma_rx_option[I2C_PORT_COUNT] = { STM32_DMA_CCR_CHANNEL(STM32_FMPI2C4_RX_REQ_CH)}, }; -/* Callabck for ISR to wake task on DMA complete. */ +/* Callback for ISR to wake task on DMA complete. */ static inline void _i2c_dma_wake_callback(void *cb_data, int port) { task_id_t id = (task_id_t)(int)cb_data; diff --git a/chip/stm32/power_led.c b/chip/stm32/power_led.c index 4992a82989..508745199f 100644 --- a/chip/stm32/power_led.c +++ b/chip/stm32/power_led.c @@ -61,7 +61,7 @@ static void power_led_manual_off(void) /* * Reconfigure GPIO as a floating input. Alternatively we could - * configure it as an open-drain output and set it to high impedence, + * configure it as an open-drain output and set it to high impedance, * but reconfiguring as an input had better results in testing. */ gpio_config_module(MODULE_POWER_LED, 0); diff --git a/chip/stm32/spi.c b/chip/stm32/spi.c index a5792b0f0c..c71d0580c9 100644 --- a/chip/stm32/spi.c +++ b/chip/stm32/spi.c @@ -273,7 +273,7 @@ static void reply(dma_chan_t *txdma, * Sends a byte over SPI without DMA * * This is mostly used when we want to relay status bytes to the AP while we're - * recieving the message and we're thinking about it. + * receiving the message and we're thinking about it. * * @note It may be sent 0, 1, or >1 times, depending on whether the host clocks * the bus or not. Basically, the EC is saying "if you ask me what my status is, @@ -349,7 +349,7 @@ static void setup_for_transaction(void) #endif } -/* Forward declaraction */ +/* Forward declaration */ static void spi_init(void); /* @@ -459,7 +459,7 @@ static void spi_send_response_packet(struct host_packet *pkt) * Handle an event on the NSS pin * * A falling edge of NSS indicates that the master is starting a new - * transaction. A rising edge indicates that we have finsihed + * transaction. A rising edge indicates that we have finished. * * @param signal GPIO signal for the NSS pin */ diff --git a/chip/stm32/usart.h b/chip/stm32/usart.h index b3fca28c53..3e6f658e26 100644 --- a/chip/stm32/usart.h +++ b/chip/stm32/usart.h @@ -20,7 +20,7 @@ */ struct usart_state { /* - * Counter of bytes receieved and then dropped because of lack of space + * Counter of bytes received and then dropped because of lack of space * in the RX queue. */ uint32_t rx_dropped; diff --git a/chip/stm32/usb_console.c b/chip/stm32/usb_console.c index f141953fb7..587609ba5d 100644 --- a/chip/stm32/usb_console.c +++ b/chip/stm32/usb_console.c @@ -63,7 +63,7 @@ const struct usb_endpoint_descriptor USB_EP_DESC(USB_IFACE_CONSOLE, 1) = { static usb_uint ep_buf_tx[USB_MAX_PACKET_SIZE / 2] __usb_ram; static usb_uint ep_buf_rx[USB_MAX_PACKET_SIZE / 2] __usb_ram; -/* Forward declaraction */ +/* Forward declaration */ static void handle_output(void); static void con_ep_tx(void) |