From cd9db428bb574940d458abad7a413b628c0e5166 Mon Sep 17 00:00:00 2001 From: uwe Date: Thu, 25 Mar 2010 23:18:41 +0000 Subject: Polish the flashrom code comments and outputs a bit. - Fix a number of typos (found via ispell). - Use correct vendor names (as per their websites) consistently. Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@985 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- serprog.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'serprog.c') diff --git a/serprog.c b/serprog.c index 0035e9a..efcf9d8 100644 --- a/serprog.c +++ b/serprog.c @@ -66,7 +66,7 @@ static uint16_t sp_device_opbuf_size = 300; /* Bitmap of supported commands */ static uint8_t sp_cmdmap[32]; -/* sp_prev_was_write used to detect writes with continouous addresses +/* sp_prev_was_write used to detect writes with contiguous addresses and combine them to write-n's */ static int sp_prev_was_write = 0; /* sp_write_n_addr used as the starting addr of the currently @@ -138,7 +138,7 @@ static int sp_sync_read_timeout(int loops) return -1; } -/* Synchronize: a bit tricky algorhytm that tries to (and in my tests has * +/* Synchronize: a bit tricky algorithm that tries to (and in my tests has * * always succeeded in) bring the serial protocol to known waiting-for- * * command state - uses nonblocking read - rest of the driver uses * * blocking read - TODO: add an alarm() timer for the rest of the app on * @@ -534,7 +534,7 @@ static void sp_check_opbuf_usage(int bytes_to_be_added) if (sp_device_opbuf_size <= (sp_opbuf_usage + bytes_to_be_added)) { sp_execute_opbuf(); /* If this happens in the mid of an page load the page load * - * will propably fail. */ + * will probably fail. */ msg_pdbg(MSGHEADER "Warning: executed operation buffer due to size reasons\n"); } } @@ -589,7 +589,7 @@ uint8_t serprog_chip_readb(const chipaddr addr) return c; } -/* Local version that really does the job, doesnt care of max_read_n. */ +/* Local version that really does the job, doesn't care of max_read_n. */ static void sp_do_read_n(uint8_t * buf, const chipaddr addr, size_t len) { int rd_bytes = 0; -- cgit v1.2.1