event: Export event_type_name()

Export this function so it can be used with initcall debugging.

Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/common/event.c b/common/event.c
index 7e2590e..55f6932 100644
--- a/common/event.c
+++ b/common/event.c
@@ -49,7 +49,7 @@
 _Static_assert(ARRAY_SIZE(type_name) == EVT_COUNT, "event type_name size");
 #endif
 
-static const char *event_type_name(enum event_t type)
+const char *event_type_name(enum event_t type)
 {
 #if CONFIG_IS_ENABLED(EVENT_DEBUG)
 	return type_name[type];
diff --git a/include/event.h b/include/event.h
index 0e3222c..062b584 100644
--- a/include/event.h
+++ b/include/event.h
@@ -231,6 +231,14 @@
 int event_manual_reloc(void);
 
 /**
+ * event_type_name() - Get the name of an event type
+ *
+ * @type: Type to check
+ * Return: Name of event, or "(unknown)" if not known
+ */
+const char *event_type_name(enum event_t type);
+
+/**
  * event_notify() - notify spies about an event
  *
  * It is possible to pass in union event_data here but that may not be