Skip to contentSkip to conversation

event.h: Documented some newly added portions better

PATCH In review Tom Rini 1 participant 2 messages Sep 4, 2023

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 event.h: Documented some newly added portions better

After the merge of v2023.10-rc4 to next include/event.h needs to be fully documented in order for documentation builds to complete. Rewords two of the event_t descriptions to be docbook style and better match the rest of this enum. Fix two typos (flag->flags) in other comments.

---
 include/event.h | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)
include/event.h +9 -8
index c37deae94527..311df878c4a5 100644
@@ -94,18 +94,19 @@ enum event_t {
 	 */
 	EVT_MISC_INIT_F,
 
-	/*
-	 * Emitted before relocation to set up Firmware Support Package
-	 *
+	/**
+	 * @EVT_FSP_INIT_F:
+	 * This event is triggered before relocation to set up Firmware Support
+	 * Package.
 	 * Where U-Boot relies on binary blobs to handle part of the system
 	 * init, this event can be used to set up the blobs. This is used on
 	 * some Intel platforms
 	 */
 	EVT_FSP_INIT_F,
 
-	/*
-	 * Emitted just before jumping to the main loop
-	 *
+	/**
+	 * @EVT_LAST_STAGE_INIT:
+	 * This event is triggered just before jumping to the main loop.
 	 * Some boards need to perform initialisation immediately before control
 	 * is passed to the command-line interpreter (e.g. for init that depend
 	 * on later phases in the init sequence).
@@ -222,7 +223,7 @@ typedef int (*event_handler_simple_t)(void);
  *
  * @func: Function to call when the event is activated (must be first)
  * @type: Event type
- * @flag: Flags for this spy
+ * @flags: Flags for this spy
  * @id: Event id string
  */
 struct evspy_info {
@@ -241,7 +242,7 @@ struct evspy_info {
  *
  * @func: Function to call when the event is activated (must be first)
  * @type: Event type
- * @flag: Flags for this spy
+ * @flags: Flags for this spy
  * @id: Event id string
  */
 struct evspy_info_simple {
Signature · 1 line
2.34.1
author
#1 lore raw
Quoted 6 lines · Tom Rini

After the merge of v2023.10-rc4 to next include/event.h needs to be fully documented in order for documentation builds to complete. Rewords two of the event_t descriptions to be docbook style and better match the rest of this enum. Fix two typos (flag->flags) in other comments.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom