summaryrefslogtreecommitdiff
path: root/arch/x86/lib/cmd_hob.c
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-01-06 14:04:36 +0800
committerSimon Glass <sjg@chromium.org>2015-01-13 07:25:02 -0800
commitb2439aecd3091e754d3dc3f8be422fee74180295 (patch)
treeab18ede5630a831ee8561bee593b6b46e7f69cb0 /arch/x86/lib/cmd_hob.c
parentcb3b2e62caa7b87ed727d690c5a8bd1e003ab601 (diff)
downloadu-boot-imx-b2439aecd3091e754d3dc3f8be422fee74180295.zip
u-boot-imx-b2439aecd3091e754d3dc3f8be422fee74180295.tar.gz
u-boot-imx-b2439aecd3091e754d3dc3f8be422fee74180295.tar.bz2
x86: fsp: Drop get_hob_type() and get_hob_length()
These two are not worth having separate inline functions as they are really simple, so drop them. Also changed 'type' parameter of fsp_get_next_hob() from u16 to uint. Suggested-by: Simon Glass <sjg@chromium.org> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib/cmd_hob.c')
-rw-r--r--arch/x86/lib/cmd_hob.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/lib/cmd_hob.c b/arch/x86/lib/cmd_hob.c
index 8d1f038..a0ef037 100644
--- a/arch/x86/lib/cmd_hob.c
+++ b/arch/x86/lib/cmd_hob.c
@@ -29,7 +29,7 @@ static char *hob_type[] = {
int do_hob(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
{
const struct hob_header *hdr;
- u16 type;
+ uint type;
char *desc;
int i = 0;
@@ -41,7 +41,7 @@ int do_hob(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
printf("----|----------|---------------------|----------------\n");
while (!end_of_hob(hdr)) {
printf("%-3d | %08x | ", i, (unsigned int)hdr);
- type = get_hob_type(hdr);
+ type = hdr->type;
if (type == HOB_TYPE_UNUSED)
desc = "*Unused*";
else if (type == HOB_TYPE_EOH)
@@ -50,7 +50,7 @@ int do_hob(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
desc = hob_type[type];
else
desc = "*Invalid Type*";
- printf("%-19s | %-15d\n", desc, get_hob_length(hdr));
+ printf("%-19s | %-15d\n", desc, hdr->len);
hdr = get_next_hob(hdr);
i++;
}