mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-24 06:24:17 +00:00

Rather than having every caller set this up individually, create a common init function. This allows new fields to be added without the risk of them being left uninited. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
23 lines
429 B
C
23 lines
429 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright 2021 Google LLC
|
|
* Written by Simon Glass <sjg@chromium.org>
|
|
*/
|
|
|
|
#include <image.h>
|
|
#include <os.h>
|
|
#include <spl.h>
|
|
#include <test/spl.h>
|
|
#include <test/ut.h>
|
|
|
|
static int spl_test_load(struct unit_test_state *uts)
|
|
{
|
|
struct spl_image_info image;
|
|
char fname[256];
|
|
|
|
ut_assertok(sandbox_spl_load_fit(fname, sizeof(fname), &image));
|
|
|
|
return 0;
|
|
}
|
|
SPL_TEST(spl_test_load, 0);
|
|
|