summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2019-05-31 08:42:28 -0700
committerCommit Bot <commit-bot@chromium.org>2019-06-19 16:16:44 +0000
commit4309ccb95ed6eb10770de6f2fe9abb2dd979e99b (patch)
treef1c398baf8c6748c606693bb0e90baec09bdf0e3
parentde2a794a228ea8aa86f4d4c5c21c99150f4688f6 (diff)
downloadchrome-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>
-rw-r--r--chip/ish/uart.c2
-rw-r--r--chip/mec1322/dma.c2
-rw-r--r--chip/npcx/shi.c2
-rw-r--r--chip/stm32/clock-f.h2
-rw-r--r--chip/stm32/dma-stm32f4.c2
-rw-r--r--chip/stm32/dma.c2
-rw-r--r--chip/stm32/flash-stm32f3.c2
-rw-r--r--chip/stm32/i2c-stm32f4.c2
-rw-r--r--chip/stm32/power_led.c2
-rw-r--r--chip/stm32/spi.c6
-rw-r--r--chip/stm32/usart.h2
-rw-r--r--chip/stm32/usb_console.c2
-rw-r--r--test/tpm_test/mpsse.c2
13 files changed, 15 insertions, 15 deletions
diff --git a/chip/ish/uart.c b/chip/ish/uart.c
index 1e5963daf2..4629f16418 100644
--- a/chip/ish/uart.c
+++ b/chip/ish/uart.c
@@ -109,7 +109,7 @@ int uart_rx_available(void)
void uart_write_char(char c)
{
- /* Wait till reciever is ready */
+ /* Wait till receiver is ready */
while (!uart_tx_ready())
continue;
diff --git a/chip/mec1322/dma.c b/chip/mec1322/dma.c
index 298d581071..ff5a0385c0 100644
--- a/chip/mec1322/dma.c
+++ b/chip/mec1322/dma.c
@@ -81,7 +81,7 @@ static void prepare_channel(mec1322_dma_chan_t *chan, unsigned count,
void dma_go(mec1322_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/npcx/shi.c b/chip/npcx/shi.c
index 2f084c597e..48ad4f0843 100644
--- a/chip/npcx/shi.c
+++ b/chip/npcx/shi.c
@@ -191,7 +191,7 @@ struct shi_bus_parameters {
#endif
} shi_params;
-/* Forward declaraction */
+/* Forward declaration */
static void shi_reset_prepare(void);
static void shi_bad_received_data(void);
static void shi_fill_out_status(uint8_t status);
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)
diff --git a/test/tpm_test/mpsse.c b/test/tpm_test/mpsse.c
index 45b3a5f08f..e57a9cf761 100644
--- a/test/tpm_test/mpsse.c
+++ b/test/tpm_test/mpsse.c
@@ -629,7 +629,7 @@ char *Transfer(struct mpsse_context *mpsse, char *data, int size)
while (n < size) {
/*
- * When sending and recieving, FTDI chips don't seem to like
+ * When sending and receiving, FTDI chips don't seem to like
* large data blocks. Limit the size of each block to
* SPI_TRANSFER_SIZE
*/