diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2016-06-25 08:47:34 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-07-06 19:30:48 +1000 |
commit | fb43f202ddd86131acf14542c34fbcb9adab45f2 (patch) | |
tree | 63e5fdc036e0a98efe90f27a52881fe7b0783e78 /include | |
parent | 5740d2eb91303715fd077cf2deb7347fb1173e69 (diff) | |
download | skiboot-fb43f202ddd86131acf14542c34fbcb9adab45f2.zip skiboot-fb43f202ddd86131acf14542c34fbcb9adab45f2.tar.gz skiboot-fb43f202ddd86131acf14542c34fbcb9adab45f2.tar.bz2 |
devicetree: Add dt_node_is_enabled()
This accessor tests the "status" property allowing us to represent
disabled devices in the device-tree. It will be used by PHB4 initially
but its usage could be made more widespread.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/device.h b/include/device.h index 28dbd5d..ed4fc46 100644 --- a/include/device.h +++ b/include/device.h @@ -161,6 +161,8 @@ struct dt_node *dt_find_compatible_node_on_chip(struct dt_node *root, for (node = NULL; \ (node = dt_find_compatible_node_on_chip(root, node,\ compat, chip_id)) != NULL;) +/* Check status property */ +bool dt_node_is_enabled(struct dt_node *node); /* Build the full path for a node. Return a new block of memory, caller * shall free() it |