* [PATCH] console: make console_set_stdoutpath public
@ 2024-03-19 15:47 Marco Felsch
2024-04-03 12:17 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Marco Felsch @ 2024-03-19 15:47 UTC (permalink / raw)
To: barebox
This can be an very useful helper for boards to setup the linux console
boot param.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
common/console.c | 2 +-
include/console.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/console.c b/common/console.c
index 03b76b122b2b..81782de7caaa 100644
--- a/common/console.c
+++ b/common/console.c
@@ -235,7 +235,7 @@ static void console_add_earlycon_param(struct console_device *cdev, unsigned bau
free(str);
}
-static void console_set_stdoutpath(struct console_device *cdev, unsigned baudrate)
+void console_set_stdoutpath(struct console_device *cdev, unsigned baudrate)
{
int id;
char *str;
diff --git a/include/console.h b/include/console.h
index 69c0ec144b31..62d13d7aa02c 100644
--- a/include/console.h
+++ b/include/console.h
@@ -102,6 +102,7 @@ int console_set_active(struct console_device *cdev, unsigned active);
unsigned console_get_active(struct console_device *cdev);
int console_set_baudrate(struct console_device *cdev, unsigned baudrate);
unsigned console_get_baudrate(struct console_device *cdev);
+void console_set_stdoutpath(struct console_device *cdev, unsigned baudrate);
struct console_device *of_console_by_stdout_path(void);
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-03 12:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-19 15:47 [PATCH] console: make console_set_stdoutpath public Marco Felsch
2024-04-03 12:17 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox