mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-25 06:21:47 +02:00
spl: Rename spl_load_fit_image() to load_simple_fit()
We have two functions called spl_load_fit_image(), one in spl.c and one in spl_fit.c Rename the second one, to indicate that it relates to simple FIT parsing, rather than the full version. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
17ba50106e
commit
d7c232e6b5
@ -208,7 +208,7 @@ static int get_aligned_image_size(struct spl_load_info *info, int data_size,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* spl_load_fit_image(): load the image described in a certain FIT node
|
* load_simple_fit(): load the image described in a certain FIT node
|
||||||
* @info: points to information about the device to load data from
|
* @info: points to information about the device to load data from
|
||||||
* @sector: the start sector of the FIT image on the device
|
* @sector: the start sector of the FIT image on the device
|
||||||
* @ctx: points to the FIT context structure
|
* @ctx: points to the FIT context structure
|
||||||
@ -221,7 +221,7 @@ static int get_aligned_image_size(struct spl_load_info *info, int data_size,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success or a negative error number.
|
* Return: 0 on success or a negative error number.
|
||||||
*/
|
*/
|
||||||
static int spl_load_fit_image(struct spl_load_info *info, ulong sector,
|
static int load_simple_fit(struct spl_load_info *info, ulong sector,
|
||||||
const struct spl_fit_info *ctx, int node,
|
const struct spl_fit_info *ctx, int node,
|
||||||
struct spl_image_info *image_info)
|
struct spl_image_info *image_info)
|
||||||
{
|
{
|
||||||
@ -386,8 +386,7 @@ static int spl_fit_append_fdt(struct spl_image_info *spl_image,
|
|||||||
else
|
else
|
||||||
return node;
|
return node;
|
||||||
} else {
|
} else {
|
||||||
ret = spl_load_fit_image(info, sector, ctx, node,
|
ret = load_simple_fit(info, sector, ctx, node, &image_info);
|
||||||
&image_info);
|
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -426,8 +425,8 @@ static int spl_fit_append_fdt(struct spl_image_info *spl_image,
|
|||||||
__func__);
|
__func__);
|
||||||
}
|
}
|
||||||
image_info.load_addr = (ulong)tmpbuffer;
|
image_info.load_addr = (ulong)tmpbuffer;
|
||||||
ret = spl_load_fit_image(info, sector, ctx,
|
ret = load_simple_fit(info, sector, ctx, node,
|
||||||
node, &image_info);
|
&image_info);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -617,7 +616,7 @@ static int spl_fit_load_fpga(struct spl_fit_info *ctx,
|
|||||||
warn_deprecated("'fpga' property in config node. Use 'loadables'");
|
warn_deprecated("'fpga' property in config node. Use 'loadables'");
|
||||||
|
|
||||||
/* Load the image and set up the fpga_image structure */
|
/* Load the image and set up the fpga_image structure */
|
||||||
ret = spl_load_fit_image(info, sector, ctx, node, &fpga_image);
|
ret = load_simple_fit(info, sector, ctx, node, &fpga_image);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
printf("%s: Cannot load the FPGA: %i\n", __func__, ret);
|
printf("%s: Cannot load the FPGA: %i\n", __func__, ret);
|
||||||
return ret;
|
return ret;
|
||||||
@ -742,7 +741,7 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Load the image and set up the spl_image structure */
|
/* Load the image and set up the spl_image structure */
|
||||||
ret = spl_load_fit_image(info, sector, &ctx, node, spl_image);
|
ret = load_simple_fit(info, sector, &ctx, node, spl_image);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
@ -783,7 +782,7 @@ int spl_load_simple_fit(struct spl_image_info *spl_image,
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
image_info.load_addr = 0;
|
image_info.load_addr = 0;
|
||||||
ret = spl_load_fit_image(info, sector, &ctx, node, &image_info);
|
ret = load_simple_fit(info, sector, &ctx, node, &image_info);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
printf("%s: can't load image loadables index %d (ret = %d)\n",
|
printf("%s: can't load image loadables index %d (ret = %d)\n",
|
||||||
__func__, index, ret);
|
__func__, index, ret);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user