git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unifying External Interrupt System (#51)
[lunaix-os.git]
/
lunaix-os
/
includes
/
hal
/
devtree.h
diff --git
a/lunaix-os/includes/hal/devtree.h
b/lunaix-os/includes/hal/devtree.h
index e7e0cf37ce0a32c36ece6877426e7db109ec8ab2..111617e7626c786e3afa5c4af5780ab0da90b7b5 100644
(file)
--- a/
lunaix-os/includes/hal/devtree.h
+++ b/
lunaix-os/includes/hal/devtree.h
@@
-1,6
+1,7
@@
#ifndef __LUNAIX_DEVTREE_H
#define __LUNAIX_DEVTREE_H
#ifndef __LUNAIX_DEVTREE_H
#define __LUNAIX_DEVTREE_H
+#ifdef CONFIG_USE_DEVICETREE
#include <lunaix/types.h>
#include <lunaix/ds/llist.h>
#include <lunaix/ds/hstr.h>
#include <lunaix/types.h>
#include <lunaix/ds/llist.h>
#include <lunaix/ds/hstr.h>
@@
-46,14
+47,14
@@
struct dtp_val
{
union
{
{
union
{
- union {
- const char* str_val;
- const char* str_lst;
- };
ptr_t ptr_val;
dt_enc_t encoded;
union dtp_baseval* ref;
ptr_t ptr_val;
dt_enc_t encoded;
union dtp_baseval* ref;
+ union {
+ const char* str_val;
+ const char* str_lst;
+ };
};
unsigned int size;
};
};
unsigned int size;
};
@@
-669,7
+670,7
@@
static inline void
dtpi_init_empty(struct dtpropi* dtpi)
{
*dtpi = (struct dtpropi) {
dtpi_init_empty(struct dtpropi* dtpi)
{
*dtpi = (struct dtpropi) {
- .prop = {
0
, 0 },
+ .prop = {
{0}
, 0 },
.loc = 0
};
}
.loc = 0
};
}
@@
-727,4
+728,5
@@
dtpi_next_val(struct dtpropi* dtpi, struct dtp_val* val, int cells)
return true;
}
return true;
}
+#endif
#endif /* __LUNAIX_DEVTREE_H */
#endif /* __LUNAIX_DEVTREE_H */