Skip to content

Commit

Permalink
libfdt: fix issues after update
Browse files Browse the repository at this point in the history
Bring back declarations that where removed from libfdt.h

Signed-off-by: Axel Heider <axel.heider@hensoldt.net>
  • Loading branch information
Axel Heider committed Mar 4, 2024
1 parent a726da8 commit ff551a6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions libfdt/fdtget.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@
#define PALIGN(p, a) ((void *)(FALIGN((unsigned long)(p), (a))))
#define GET_CELL(p) (p += 4, *((const uint32_t *)(p-4)))

enum display_mode {
MODE_SHOW_VALUE, /* show values for node properties */
MODE_LIST_PROPS, /* list the properties for a node */
MODE_LIST_SUBNODES, /* list the subnodes of a node */
};

/* Holds information which controls our output and options */
struct display_info {
int type; /* data type (s/i/u/x or 0 for default) */
int size; /* data size (1/2/4) */
enum display_mode mode; /* display mode that we are using */
const char *default_val; /* default value if node/property not found */
};

static void report_error(const char *where, int err)
{
Expand Down

0 comments on commit ff551a6

Please sign in to comment.