summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-08-18 09:04:41 +0200
committerNico Huber <nico.h@gmx.de>2018-08-19 10:42:45 +0000
commite2c90c45f7d1dbdd02269f0a8f3c95cb8ee5fa91 (patch)
tree2abda8ef6e3506d00711dcf527b97f61a5b930fd
parent5bd11dc8476b4b17cef58d8d855f2b50e74da2f4 (diff)
downloadflashrom-e2c90c45f7d1dbdd02269f0a8f3c95cb8ee5fa91.tar.gz
flashrom-e2c90c45f7d1dbdd02269f0a8f3c95cb8ee5fa91.tar.bz2
flashrom-e2c90c45f7d1dbdd02269f0a8f3c95cb8ee5fa91.zip
Fix typos
Change-Id: I20745d5f30f9577622e27abf2f45220f026f65ac Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/28206 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
-rw-r--r--atapromise.c2
-rw-r--r--buspirate_spi.c2
-rw-r--r--ch341a_spi.c2
-rw-r--r--flashchips.c6
-rw-r--r--mstarddc_spi.c2
-rw-r--r--physmap.c2
-rw-r--r--platform.h2
-rw-r--r--serial.c2
8 files changed, 10 insertions, 10 deletions
diff --git a/atapromise.c b/atapromise.c
index ca63df766..ab34a1ec8 100644
--- a/atapromise.c
+++ b/atapromise.c
@@ -144,7 +144,7 @@ int atapromise_init(void)
msg_pwarn("Do not use this device as a generic programmer. It will leave anything outside\n"
"the first %zu kB of the flash chip in an undefined state. It works fine for the\n"
- "purpose of updating the firmware of this device (padding may neccessary).\n",
+ "purpose of updating the firmware of this device (padding may necessary).\n",
rom_size / 1024);
return 0;
diff --git a/buspirate_spi.c b/buspirate_spi.c
index fad309f96..437aa748e 100644
--- a/buspirate_spi.c
+++ b/buspirate_spi.c
@@ -252,7 +252,7 @@ int buspirate_spi_init(void)
}
free(tmp);
- /* Extract serialspeed paramater */
+ /* Extract serialspeed parameter */
tmp = extract_programmer_param("serialspeed");
if (tmp) {
for (i = 0; serialspeeds[i].name; i++) {
diff --git a/ch341a_spi.c b/ch341a_spi.c
index f88b6245d..9ebda0d3a 100644
--- a/ch341a_spi.c
+++ b/ch341a_spi.c
@@ -315,7 +315,7 @@ static int32_t enable_pins(bool enable)
/* De-assert and assert CS in one operation. */
static void pluck_cs(uint8_t *ptr)
{
- /* This was measured to give a minumum deassertion time of 2.25 us,
+ /* This was measured to give a minimum deassertion time of 2.25 us,
* >20x more than needed for most SPI chips (100ns). */
int delay_cnt = 2;
if (stored_delay_us) {
diff --git a/flashchips.c b/flashchips.c
index 1a73ba4fe..2001d8c7b 100644
--- a/flashchips.c
+++ b/flashchips.c
@@ -5533,7 +5533,7 @@ const struct flashchip flashchips[] = {
.model_id = EXCEL_ES25P40,
.total_size = 512,
.page_size = 256,
- /* 256-byte paramter page separate from memory array:
+ /* 256-byte parameter page separate from memory array:
* supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
.feature_bits = FEATURE_WRSR_WREN,
.tested = TEST_UNTESTED,
@@ -5564,7 +5564,7 @@ const struct flashchip flashchips[] = {
.model_id = EXCEL_ES25P80,
.total_size = 1024,
.page_size = 256,
- /* 256-byte paramter page separate from memory array:
+ /* 256-byte parameter page separate from memory array:
* supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
.feature_bits = FEATURE_WRSR_WREN,
.tested = TEST_UNTESTED,
@@ -5595,7 +5595,7 @@ const struct flashchip flashchips[] = {
.model_id = EXCEL_ES25P16,
.total_size = 2 * 1024,
.page_size = 256,
- /* 256-byte paramter page separate from memory array:
+ /* 256-byte parameter page separate from memory array:
* supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */
.feature_bits = FEATURE_WRSR_WREN,
.tested = TEST_UNTESTED,
diff --git a/mstarddc_spi.c b/mstarddc_spi.c
index f6e573ac0..afe4e1249 100644
--- a/mstarddc_spi.c
+++ b/mstarddc_spi.c
@@ -57,7 +57,7 @@ static int mstarddc_spi_shutdown(void *data)
} else {
msg_pinfo("Info: Reset command was not sent. "
"Either the noreset=1 option was used, "
- "or an error occured.\n");
+ "or an error occurred.\n");
}
if (close(mstarddc_fd) < 0) {
diff --git a/physmap.c b/physmap.c
index 8dd50a5d2..8e809258f 100644
--- a/physmap.c
+++ b/physmap.c
@@ -364,7 +364,7 @@ void *physmap_ro_unaligned(const char *descr, uintptr_t phys_addr, size_t len)
}
/* MSR abstraction implementations for Linux, OpenBSD, FreeBSD/Dragonfly, OSX, libpayload
- * and a non-working default implemenation on the bottom. See also hwaccess.h for some (re)declarations. */
+ * and a non-working default implementation on the bottom. See also hwaccess.h for some (re)declarations. */
#if defined(__i386__) || defined(__x86_64__)
#ifdef __linux__
diff --git a/platform.h b/platform.h
index 4af1c481c..d290afc53 100644
--- a/platform.h
+++ b/platform.h
@@ -80,7 +80,7 @@
#error Unknown architecture
#endif
-/* The next big hunk tries to guess endianess from various preprocessor macros */
+/* The next big hunk tries to guess endianness from various preprocessor macros */
/* First some error checking in case some weird header has defined both.
* NB: OpenBSD always defines _BIG_ENDIAN and _LITTLE_ENDIAN. */
#if defined (__LITTLE_ENDIAN__) && defined (__BIG_ENDIAN__)
diff --git a/serial.c b/serial.c
index f08542ddd..e61df74f1 100644
--- a/serial.c
+++ b/serial.c
@@ -194,7 +194,7 @@ int serialport_config(fdtype fd, int baud)
return 1;
}
/* We want whatever the termios looks like now, so the rest of the
- setup doesnt mess up the custom rate. */
+ setup doesn't mess up the custom rate. */
if (tcgetattr(fd, &wanted) != 0) {
/* This should pretty much never happen (see above), but.. */
msg_perr_strerror("Could not fetch serial port configuration: ");