xpl: Rename spl_phase() to xpl_phase()
Rename this function to indicate that it refers to any xPL phase. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -157,7 +157,7 @@ static int simple_load_from_image(struct spl_image_info *spl_image,
|
||||
struct vbe_handoff *handoff;
|
||||
int ret;
|
||||
|
||||
if (spl_phase() != PHASE_VPL && spl_phase() != PHASE_SPL)
|
||||
if (xpl_phase() != PHASE_VPL && xpl_phase() != PHASE_SPL)
|
||||
return -ENOENT;
|
||||
|
||||
ret = bloblist_ensure_size(BLOBLISTT_VBE, sizeof(struct vbe_handoff),
|
||||
@@ -197,7 +197,7 @@ static int simple_load_from_image(struct spl_image_info *spl_image,
|
||||
bootflow_free(&bflow);
|
||||
|
||||
/* Record that VBE was used in this phase */
|
||||
handoff->phases |= 1 << spl_phase();
|
||||
handoff->phases |= 1 << xpl_phase();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user