diff options
author | Martin Roth <martinroth@chromium.org> | 2016-10-24 16:32:19 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-11-15 17:41:53 -0800 |
commit | 897ce78bddb26557a686ab9e756fcf3d6c121271 (patch) | |
tree | edde864d756a6e1133808118b8ae90c323ed4ade /common | |
parent | 64b57efebdb311126f3daaa97d49443308507b76 (diff) | |
download | chrome-ec-897ce78bddb26557a686ab9e756fcf3d6c121271.tar.gz |
Fix various misspellings in comments
No functional changes.
BUG=none
BRANCH=none
TEST=make buildall passes
Change-Id: Ie852feb8e3951975d99dce5a49c17f5f0e8bc791
Signed-off-by: Martin Roth <martinroth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/403417
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/charge_manager.c | 2 | ||||
-rw-r--r-- | common/fmap.c | 2 | ||||
-rw-r--r-- | common/gesture.c | 2 | ||||
-rw-r--r-- | common/i2c.c | 2 | ||||
-rw-r--r-- | common/main.c | 2 | ||||
-rw-r--r-- | common/pd_log.c | 2 | ||||
-rw-r--r-- | common/spi_nor.c | 4 | ||||
-rw-r--r-- | common/tpm_registers.c | 4 | ||||
-rw-r--r-- | common/usb_pd_protocol.c | 4 | ||||
-rw-r--r-- | common/usb_pd_tcpc.c | 2 |
10 files changed, 13 insertions, 13 deletions
diff --git a/common/charge_manager.c b/common/charge_manager.c index fa3a16c321..a4d9d8dea4 100644 --- a/common/charge_manager.c +++ b/common/charge_manager.c @@ -823,7 +823,7 @@ void charge_manager_set_ceil(int port, enum ceil_requestor requestor, int ceil) * * @param port Charge port to select as override, or * OVERRIDE_OFF to select no override port, - * or OVERRIDE_DONT_CHARGE to specifc that no + * or OVERRIDE_DONT_CHARGE to specific that no * charge port should be selected. */ int charge_manager_set_override(int port) diff --git a/common/fmap.c b/common/fmap.c index c76b6621d3..6f84c37b63 100644 --- a/common/fmap.c +++ b/common/fmap.c @@ -152,7 +152,7 @@ const struct _ec_fmap { * ASCII, and padded with \0. * TODO: Get the relative offset of * __version_struct_offset within our RW image to - * accomodate image asymmetry. + * accommodate image asymmetry. */ .area_name = "RW_FWID", .area_offset = CONFIG_EC_WRITABLE_STORAGE_OFF - diff --git a/common/gesture.c b/common/gesture.c index 157e3c1f5a..8d9c744cf7 100644 --- a/common/gesture.c +++ b/common/gesture.c @@ -94,7 +94,7 @@ static int gesture_tap_for_battery(void) /* * Running sums of data diffs for inner and outer windows. - * Z data kept seperate from X and Y data + * Z data kept separate from X and Y data */ static int sum_z_inner, sum_z_outer, sum_xy_inner, sum_xy_outer; diff --git a/common/i2c.c b/common/i2c.c index af2aa61133..165f343aa1 100644 --- a/common/i2c.c +++ b/common/i2c.c @@ -27,7 +27,7 @@ #define CPUTS(outstr) cputs(CC_I2C, outstr) #define CPRINTS(format, args...) cprints(CC_I2C, format, ## args) -/* Only chips with multi-port controllers will define I2C_CONTROLER_COUNT */ +/* Only chips with multi-port controllers will define I2C_CONTROLLER_COUNT */ #ifndef I2C_CONTROLLER_COUNT #define I2C_CONTROLLER_COUNT I2C_PORT_COUNT #endif diff --git a/common/main.c b/common/main.c index 4c5d580ddd..513832f04f 100644 --- a/common/main.c +++ b/common/main.c @@ -137,7 +137,7 @@ test_mockable __keep int main(void) #ifdef CONFIG_WATCHDOG /* - * Intialize watchdog timer. All lengthy operations between now and + * Initialize watchdog timer. All lengthy operations between now and * task_start() must periodically call watchdog_reload() to avoid * triggering a watchdog reboot. (This pretty much applies only to * verified boot, because all *other* lengthy operations should be done diff --git a/common/pd_log.c b/common/pd_log.c index 7cbcf0c49a..2acf7bf8f7 100644 --- a/common/pd_log.c +++ b/common/pd_log.c @@ -20,7 +20,7 @@ BUILD_ASSERT(POWER_OF_TWO(LOG_SIZE)); /* * The FIFO pointers are defined as following : * "log_head" is the next available event to dequeue. - * "log_tail" is marking the end of the FIFO content (after last commited event) + * "log_tail" is marking the end of the FIFO content (after last committed event) * "log_tail_next" is the next available spot to enqueue events. * The pointers are not wrapped until they are used, so we don't need an extra * entry to disambiguate between full and empty FIFO. diff --git a/common/spi_nor.c b/common/spi_nor.c index dc69b19c3c..bd8983bcd7 100644 --- a/common/spi_nor.c +++ b/common/spi_nor.c @@ -141,7 +141,7 @@ static int spi_nor_read_jedec_id(const struct spi_nor_device_t *spi_nor_device, return rv; *out_mfn_bank = 0; - /* Go through the JEDEC ID a byate a time to looking for a manufacturer + /* Go through the JEDEC ID a byte a time to looking for a manufacturer * ID instead of the next bank indicator (0x7F). */ for (i = 0; i < SPI_NOR_JEDEC_ID_BANKS; i++) { *out_mfn_id = jedec_id[i]; @@ -412,7 +412,7 @@ int spi_nor_init(void) int rv = EC_SUCCESS; size_t i; - /* Initiailize the state for each serial NOR flash device. */ + /* Initialize the state for each serial NOR flash device. */ for (i = 0; i < SPI_NOR_DEVICE_COUNT; i++) { uint8_t sfdp_major_rev, sfdp_minor_rev; uint8_t table_major_rev, table_minor_rev; diff --git a/common/tpm_registers.c b/common/tpm_registers.c index b5c5f8b7e5..ba7cec183f 100644 --- a/common/tpm_registers.c +++ b/common/tpm_registers.c @@ -324,7 +324,7 @@ static void fifo_reg_write(const uint8_t *data, uint32_t data_size) struct tpm_cmd_header *tpmh; /* - * Make sure we are in the approriate sate, otherwise ignore this + * Make sure we are in the appropriate state, otherwise ignore this * access. */ if ((tpm_.state == tpm_state_ready) && (tpm_.fifo_write_index == 0)) @@ -363,7 +363,7 @@ static void fifo_reg_write(const uint8_t *data, uint32_t data_size) return; } - /* All data has been receved, Ready for the 'go' command. */ + /* All data has been received, Ready for the 'go' command. */ tpm_.regs.sts &= ~expect; } diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 4b49f0772e..d0773724e2 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -104,7 +104,7 @@ enum pd_dual_role_states drp_state = PD_DRP_TOGGLE_OFF; static uint32_t pd_src_caps[CONFIG_USB_PD_PORT_COUNT][PDO_MAX_OBJECTS]; static int pd_src_cap_cnt[CONFIG_USB_PD_PORT_COUNT]; -/* Enable varible for Try.SRC states */ +/* Enable variable for Try.SRC states */ static uint8_t pd_try_src_enable; #endif @@ -1895,7 +1895,7 @@ void pd_task(void) /* Send source cap some minimum number of times */ if (caps_count < PD_CAPS_COUNT) { - /* Query capabilites of the other side */ + /* Query capabilities of the other side */ res = send_source_cap(port); /* packet was acked => PD capable device) */ if (res >= 0) { diff --git a/common/usb_pd_tcpc.c b/common/usb_pd_tcpc.c index 8620138a64..a9ce499dbc 100644 --- a/common/usb_pd_tcpc.c +++ b/common/usb_pd_tcpc.c @@ -418,7 +418,7 @@ static int send_validate_message(int port, uint16_t header, * we have received a good packet * but not the expected GoodCRC, * the other side is trying to contact us, - * bail out immediatly so we can get the retry. + * bail out immediately so we can get the retry. */ return PD_TX_ERR_INV_ACK; } |