[PATCH] console: make console_set_stdoutpath public

Marco Felsch m.felsch at pengutronix.de
Tue Mar 19 08:47:18 PDT 2024


This can be an very useful helper for boards to setup the linux console
boot param.

Signed-off-by: Marco Felsch <m.felsch at 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




More information about the barebox mailing list