* Code cleanup:
- remove trailing white space, trailing empty lines, C++ comments, etc.
- split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)
* Patches by Kenneth Johansson, 25 Jun 2003:
- major rework of command structure
(work done mostly by Michal Cendrowski and Joakim Kristiansen)
diff --git a/board/cogent/lcd.c b/board/cogent/lcd.c
index 941ea65..c1b4d11 100644
--- a/board/cogent/lcd.c
+++ b/board/cogent/lcd.c
@@ -112,7 +112,7 @@
lcd_write_command(clp, LCD_CMD_ADD + addr);
for (pos = 0; *string != '\0' && pos < linelen; pos++)
- lcd_write_data(clp, *string++);
+ lcd_write_data(clp, *string++);
}
void
@@ -131,7 +131,7 @@
linepos = 0;
for (i = 0; i < LCD_LINE_LENGTH; i++) {
- lines[0][i] = init_line0[i];
+ lines[0][i] = init_line0[i];
lines[1][i] = init_line1[i];
}
@@ -157,25 +157,25 @@
linelen--;
if (c == '\n') {
- lcd_dis(LCD_LINE0, &lines[curline^1][0]);
- lcd_dis(LCD_LINE1, &lines[curline][0]);
+ lcd_dis(LCD_LINE0, &lines[curline^1][0]);
+ lcd_dis(LCD_LINE1, &lines[curline][0]);
- /* Do a line feed */
- curline ^= 1;
+ /* Do a line feed */
+ curline ^= 1;
linelen = LCD_LINE_LENGTH;
if (heartbeat_active && curline == 0)
linelen--;
- linepos = 0;
+ linepos = 0;
- for (i = 0; i < linelen; i++)
- lines[curline][i] = ' ';
+ for (i = 0; i < linelen; i++)
+ lines[curline][i] = ' ';
- return;
+ return;
}
/* Only allow to be output if there is room on the LCD line */
if (linepos < linelen)
- lines[curline][linepos++] = c;
+ lines[curline][linepos++] = c;
}
void