mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-06-09 23:36:03 +09:00
terminal: correct stdio_dev invocations
stdio_dev methods have taken a pointer to themselves since 709ea543
(nearly 7 years ago).
Signed-off-by: Asherah Connor <ashe@kivikakk.ee>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
05a0776ed5
commit
5c935eb6f7
|
@ -33,8 +33,8 @@ int do_terminal(struct cmd_tbl *cmd, int flag, int argc, char *const argv[])
|
||||||
int c;
|
int c;
|
||||||
|
|
||||||
/* read from console and display on serial port */
|
/* read from console and display on serial port */
|
||||||
if (stdio_devices[0]->tstc()) {
|
if (stdio_devices[0]->tstc(stdio_devices[0])) {
|
||||||
c = stdio_devices[0]->getc();
|
c = stdio_devices[0]->getc(stdio_devices[0]);
|
||||||
if (last_tilde == 1) {
|
if (last_tilde == 1) {
|
||||||
if (c == '.') {
|
if (c == '.') {
|
||||||
putc(c);
|
putc(c);
|
||||||
|
@ -43,7 +43,7 @@ int do_terminal(struct cmd_tbl *cmd, int flag, int argc, char *const argv[])
|
||||||
} else {
|
} else {
|
||||||
last_tilde = 0;
|
last_tilde = 0;
|
||||||
/* write the delayed tilde */
|
/* write the delayed tilde */
|
||||||
dev->putc('~');
|
dev->putc(dev, '~');
|
||||||
/* fall-through to print current
|
/* fall-through to print current
|
||||||
* character */
|
* character */
|
||||||
}
|
}
|
||||||
|
@ -53,12 +53,12 @@ int do_terminal(struct cmd_tbl *cmd, int flag, int argc, char *const argv[])
|
||||||
puts("[u-boot]");
|
puts("[u-boot]");
|
||||||
putc(c);
|
putc(c);
|
||||||
}
|
}
|
||||||
dev->putc(c);
|
dev->putc(dev, c);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* read from serial port and display on console */
|
/* read from serial port and display on console */
|
||||||
if (dev->tstc()) {
|
if (dev->tstc(dev)) {
|
||||||
c = dev->getc();
|
c = dev->getc(dev);
|
||||||
putc(c);
|
putc(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user