mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Marco Felsch <m.felsch@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] console: make console_set_stdoutpath public
Date: Tue, 19 Mar 2024 16:47:18 +0100	[thread overview]
Message-ID: <20240319154718.3510015-1-m.felsch@pengutronix.de> (raw)

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




             reply	other threads:[~2024-03-19 15:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-19 15:47 Marco Felsch [this message]
2024-04-03 12:17 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240319154718.3510015-1-m.felsch@pengutronix.de \
    --to=m.felsch@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox