mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
expo: Allow setting the start of the dynamic-ID range
Provide a way to set this value so that it is easy to separate the statically allocated IDs (generated by the caller) from those generated dynamically by expo itself. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
b828ed7d79
commit
9af341502c
4 changed files with 37 additions and 10 deletions
10
boot/scene.c
10
boot/scene.c
|
@ -18,16 +18,6 @@
|
|||
#include <linux/input.h>
|
||||
#include "scene_internal.h"
|
||||
|
||||
uint resolve_id(struct expo *exp, uint id)
|
||||
{
|
||||
if (!id)
|
||||
id = exp->next_id++;
|
||||
else if (id >= exp->next_id)
|
||||
exp->next_id = id + 1;
|
||||
|
||||
return id;
|
||||
}
|
||||
|
||||
int scene_new(struct expo *exp, const char *name, uint id, struct scene **scnp)
|
||||
{
|
||||
struct scene *scn;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue