summaryrefslogtreecommitdiffstats
path: root/ni845x_spi.c
diff options
context:
space:
mode:
authorMartin Roth <gaumless@gmail.com>2022-03-15 10:55:25 -0600
committerAnastasia Klimchuk <aklm@chromium.org>2022-05-03 05:23:23 +0000
commit0f388acaba981c6c3ebee10528d88e42195f805f (patch)
tree2a951abb04a839e94f5c6640b2b63ea52c6b27cc /ni845x_spi.c
parent005aa915a0c687e8d73a3ed5b52735e8d3faf80a (diff)
downloadflashrom-0f388acaba981c6c3ebee10528d88e42195f805f.tar.gz
flashrom-0f388acaba981c6c3ebee10528d88e42195f805f.tar.bz2
flashrom-0f388acaba981c6c3ebee10528d88e42195f805f.zip
Global cleanup: Fix a few spelling errors
Just a trivial patch to fix a few errors found by codespell. Here's the command I used: codespell -S subprojects,out \ -L fwe,dout,tast,crate,parms,claus,nt,nd,te,truns,trun Signed-off-by: Martin Roth <gaumless@gmail.com> Change-Id: I4e3b277f220fa70dcab21912c30f1d26d9bd8749 Reviewed-on: https://review.coreboot.org/c/flashrom/+/62840 Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'ni845x_spi.c')
-rw-r--r--ni845x_spi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ni845x_spi.c b/ni845x_spi.c
index 4dcf1400f..18c0278c4 100644
--- a/ni845x_spi.c
+++ b/ni845x_spi.c
@@ -146,7 +146,7 @@ static int32 ni845x_spi_open_resource(char *resource_handle, uInt32 *opened_hand
/**
* @param serial a null terminated string containing the serial number of the specific device or NULL
- * @return the 0 on successful completition, negative error code on failure
+ * @return the 0 on successful completion, negative error code on failure
*/
static int ni845x_spi_open(const char *serial, uInt32 *return_handle)
{
@@ -161,7 +161,7 @@ static int ni845x_spi_open(const char *serial, uInt32 *return_handle)
tmp = ni845xFindDevice(resource_name, &device_find_handle, &found_devices_count);
if (tmp != 0) {
- // supress warning if no device found
+ // suppress warning if no device found
if (tmp != NI845x_FIND_DEVICE_NO_DEVICE_FOUND)
ni845x_report_error("ni845xFindDevice", tmp);
return -1;
@@ -214,7 +214,7 @@ _close_ret:
* @param requested_io_voltage_mV the desired IO voltage in mVolts
* @param set_io_voltage_mV the IO voltage which was set in mVolts
* @param coerce_mode if set to USE_LOWER the closest supported IO voltage which is lower or equal to
- * the requested_io_voltage_mV will be selected. Otherwise the next closest supported voltage will be choosen
+ * the requested_io_voltage_mV will be selected. Otherwise the next closest supported voltage will be chosen
* which is higher or equal to the requested_io_voltage_mV.
* @return 0 on success, negative on error, positive on warning
*/
@@ -340,7 +340,7 @@ static void ni845x_spi_print_available_devices(void)
tmp = ni845xFindDevice(resource_handle, &device_find_handle, &found_devices_count);
if (tmp != 0) {
- // supress warning if no device found
+ // suppress warning if no device found
if (tmp != NI845x_FIND_DEVICE_NO_DEVICE_FOUND)
ni845x_report_error("ni845xFindDevice", tmp);
return;
@@ -517,7 +517,7 @@ static int ni845x_spi_transmit(const struct flashctx *flash,
if (read_cnt != 0 && read_arr != NULL) {
if ((read_cnt + write_cnt) != read_size) {
- msg_perr("%s: expected and returned read count mismatch: %u expected, %ld recieved\n",
+ msg_perr("%s: expected and returned read count mismatch: %u expected, %ld received\n",
__func__, read_cnt, read_size);
free(transfer_buffer);
return -1;