From ef211ab252d7a45f033d59a90d8e0575ce1a0d2d Mon Sep 17 00:00:00 2001
From: Simon Glass <sjg@chromium.org>
Date: Sun, 12 Nov 2023 19:58:21 -0700
Subject: [PATCH] board: Move show_board_info() comment to header file

Move this comment to its prototype and tidy it up a bit.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
---
 common/board_info.c |  6 ------
 include/init.h      | 11 +++++++++++
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/common/board_info.c b/common/board_info.c
index e0f2d93922..3185793da4 100644
--- a/common/board_info.c
+++ b/common/board_info.c
@@ -15,12 +15,6 @@ int __weak checkboard(void)
 	return 0;
 }
 
-/*
- * Check sysinfo for board information. Failing that if the root node of the DTB
- * has a "model" property, show it.
- *
- * Then call checkboard().
- */
 int __weak show_board_info(void)
 {
 	if (IS_ENABLED(CONFIG_OF_CONTROL)) {
diff --git a/include/init.h b/include/init.h
index d57a24fd00..9a1951d10a 100644
--- a/include/init.h
+++ b/include/init.h
@@ -292,6 +292,17 @@ int misc_init_r(void);
 
 /* common/board_info.c */
 int checkboard(void);
+
+/**
+ * show_board_info() - Show board information
+ *
+ * Check sysinfo for board information. Failing that if the root node of the DTB
+ * has a "model" property, show it.
+ *
+ * Then call checkboard().
+ *
+ * Return 0 if OK, -ve on error
+ */
 int show_board_info(void);
 
 /**
-- 
2.39.5