diff options
author | Burt P <pburt0@gmail.com> | 2017-07-19 16:49:44 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2017-07-21 05:14:20 -0700 |
commit | e3c217f47dcfff0967bf48cdd9efa3e3e4f07d50 (patch) | |
tree | 8a124a9f1e79f7a263c9c7434658d9cc8a867ed7 /includes | |
parent | 41a3cde484b21c24c9a5f88461591c4a42603960 (diff) |
device tree: try harder to find device-tree root
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes')
-rw-r--r-- | includes/dt_util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/dt_util.h b/includes/dt_util.h index 4f4daac1..bf56c293 100644 --- a/includes/dt_util.h +++ b/includes/dt_util.h @@ -9,7 +9,7 @@ #define DTEX_MTUP 0 #ifndef DTR_ROOT -#define DTR_ROOT "/proc/device-tree" +#define DTR_ROOT dtr_find_device_tree_root() #endif enum { @@ -70,4 +70,6 @@ char *dtr_list_hex(dt_uint *list, unsigned long count); char *dtr_maps_info(dtr *); /* returns hardinfo shell section */ +const char *dtr_find_device_tree_root(void); + #endif |