event: Convert existing spy records to simple

Very few of the existing event-spy records use the arguments they are
passed. Update them to use a simple spy instead, to simplify the code.

Where an adaptor function is currently used, remove it where possible.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2023-08-21 21:16:56 -06:00
committed by Tom Rini
parent dd802467f4
commit f72d0d4a2f
24 changed files with 52 additions and 78 deletions

View File

@@ -618,7 +618,7 @@ int fwu_trial_state_ctr_start(void)
return ret;
}
static int fwu_boottime_checks(void *ctx, struct event *event)
static int fwu_boottime_checks(void)
{
int ret;
u32 boot_idx, active_idx;
@@ -682,4 +682,4 @@ static int fwu_boottime_checks(void *ctx, struct event *event)
return 0;
}
EVENT_SPY(EVT_MAIN_LOOP, fwu_boottime_checks);
EVENT_SPY_SIMPLE(EVT_MAIN_LOOP, fwu_boottime_checks);