diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2016-01-18 14:23:18 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-01-21 15:26:42 +1100 |
commit | 5d9b239fadc6c0bdf18e34a48a4b0ade956994e6 (patch) | |
tree | 8511e25b0e2e742b09e0758e6854e169cd2e176a /core/device.c | |
parent | b35c7652ba04019e0c9ace0092369daab8177d1d (diff) | |
download | skiboot-5d9b239fadc6c0bdf18e34a48a4b0ade956994e6.zip skiboot-5d9b239fadc6c0bdf18e34a48a4b0ade956994e6.tar.gz skiboot-5d9b239fadc6c0bdf18e34a48a4b0ade956994e6.tar.bz2 |
DT sorting test
Moved the dt_dump() into test/dt_common.c so that it can be shared
between hdata/test/hdata_to_dt.c and core/test/run-device.c
run-device.c contains two tests, one basic sorting test and a
generate-and-sort test.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
[stewart@linux.vnet.ibm.com: remove trailing whitespace]
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/device.c')
-rw-r--r-- | core/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/device.c b/core/device.c index 2b44edb..ba983c7 100644 --- a/core/device.c +++ b/core/device.c @@ -75,7 +75,7 @@ static const char *get_unitname(const struct dt_node *node) return c + 1; } -static int dt_cmp_subnodes(const struct dt_node *a, const struct dt_node *b) +int dt_cmp_subnodes(const struct dt_node *a, const struct dt_node *b) { const char *a_unit = get_unitname(a); const char *b_unit = get_unitname(b); |