diff options
author | Tom Rini <trini@konsulko.com> | 2022-07-11 10:18:13 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-07-11 10:18:13 -0400 |
commit | c0580d8e1e2d95c3e322f6c45905cbb43ac69b7d (patch) | |
tree | 070eaa15f852b99536f69a45edef48d79707017b /include/event.h | |
parent | e092e3250270a1016c877da7bdd9384f14b1321e (diff) | |
parent | 05a4859637567b13219efd6f1707fb236648b1b7 (diff) | |
download | u-boot-WIP/11Jul2022.zip u-boot-WIP/11Jul2022.tar.gz u-boot-WIP/11Jul2022.tar.bz2 |
Merge branch 'next'WIP/11Jul2022
Diffstat (limited to 'include/event.h')
-rw-r--r-- | include/event.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/event.h b/include/event.h index 62e72a7..c00c4fb 100644 --- a/include/event.h +++ b/include/event.h @@ -144,7 +144,16 @@ int event_register(const char *id, enum event_t type, event_handler_t func, /** event_show_spy_list( - Show a list of event spies */ void event_show_spy_list(void); -#if CONFIG_IS_ENABLED(EVENT) +/** + * event_manual_reloc() - Relocate event handler pointers + * + * Relocate event handler pointers for all static event spies. It is called + * during the generic board init sequence, after relocation. + * + * Return: 0 if OK + */ +int event_manual_reloc(void); + /** * event_notify() - notify spies about an event * @@ -159,6 +168,7 @@ void event_show_spy_list(void); */ int event_notify(enum event_t type, void *data, int size); +#if CONFIG_IS_ENABLED(EVENT) /** * event_notify_null() - notify spies about an event * @@ -169,11 +179,6 @@ int event_notify(enum event_t type, void *data, int size); */ int event_notify_null(enum event_t type); #else -static inline int event_notify(enum event_t type, void *data, int size) -{ - return 0; -} - static inline int event_notify_null(enum event_t type) { return 0; |