summaryrefslogtreecommitdiff
path: root/board/google/chromebook_coral
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-08-21 21:16:56 -0600
committerTom Rini <trini@konsulko.com>2023-08-31 13:16:54 -0400
commitf72d0d4a2f9a2d05ebeefb583992cc620f7c4c2d (patch)
treeafaa54f94971d8dc3e9c9b7bb5d860053c37b6eb /board/google/chromebook_coral
parentdd802467f44b68d6ed9315ffe3002b17dc43b622 (diff)
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>
Diffstat (limited to 'board/google/chromebook_coral')
-rw-r--r--board/google/chromebook_coral/coral.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/google/chromebook_coral/coral.c b/board/google/chromebook_coral/coral.c
index 9e23f5cd31e..9d9168d608a 100644
--- a/board/google/chromebook_coral/coral.c
+++ b/board/google/chromebook_coral/coral.c
@@ -33,7 +33,7 @@ struct cros_gpio_info {
int flags;
};
-static int coral_check_ll_boot(void *ctx, struct event *event)
+static int coral_check_ll_boot(void)
{
if (!ll_boot_init()) {
printf("Running as secondary loader");
@@ -57,7 +57,7 @@ static int coral_check_ll_boot(void *ctx, struct event *event)
return 0;
}
-EVENT_SPY(EVT_MISC_INIT_F, coral_check_ll_boot);
+EVENT_SPY_SIMPLE(EVT_MISC_INIT_F, coral_check_ll_boot);
int arch_misc_init(void)
{