summaryrefslogtreecommitdiff
path: root/include/event.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-09-06 20:26:56 -0600
committerTom Rini <trini@konsulko.com>2022-09-29 16:07:57 -0400
commitb5001cb4bdfed678877840776c15b1e9a358dacf (patch)
treee956248529ce695d996e26304cd7fe104fe846f0 /include/event.h
parentf39e5b802aa486a038a0cbe54c2b6f72aa551f9f (diff)
downloadu-boot-b5001cb4bdfed678877840776c15b1e9a358dacf.tar.gz
u-boot-b5001cb4bdfed678877840776c15b1e9a358dacf.tar.bz2
u-boot-b5001cb4bdfed678877840776c15b1e9a358dacf.zip
event: Allow multiple spy declarations for each event
At present only one spy is allowed per event. Update the naming to allow more than one, since some need this flexibility, e.g. the EVT_FT_FIXUP event. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/event.h')
-rw-r--r--include/event.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/event.h b/include/event.h
index e8f2f55c63..ff883ca064 100644
--- a/include/event.h
+++ b/include/event.h
@@ -143,8 +143,8 @@ static inline const char *event_spy_id(struct evspy_info *spy)
* vbe_simple.c - so for now, make it global.
*/
#define EVENT_SPY(_type, _func) \
- __used ll_entry_declare(struct evspy_info, _type, evspy_info) = \
- _ESPY_REC(_type, _func)
+ __used ll_entry_declare(struct evspy_info, _type ## _3_ ## _func, \
+ evspy_info) = _ESPY_REC(_type, _func)
/**
* event_register - register a new spy