diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-16 15:36:40 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-18 13:54:23 +0200 |
commit | 3ae902ed7f06e9392624dad1ed23fd4f0dc9c38b (patch) | |
tree | 322e8f463088923fe7bc32bc92735291ab36db1a /include/of.h | |
parent | 9cb5f51d0aeca9b2f18019d05b7b09884809037d (diff) | |
download | barebox-3ae902ed7f06e9392624dad1ed23fd4f0dc9c38b.tar.gz barebox-3ae902ed7f06e9392624dad1ed23fd4f0dc9c38b.tar.xz |
of: Add convenience functions to en/disable devicenodes
These functions allow to manipulate the "status" property of
devicenodes effectively enabling/disabling devices.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/of.h')
-rw-r--r-- | include/of.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index 710383c30f..7b600f038b 100644 --- a/include/of.h +++ b/include/of.h @@ -682,4 +682,9 @@ static inline int of_property_write_u64(struct device_node *np, extern const struct of_device_id of_default_bus_match_table[]; +int of_device_enable(struct device_node *node); +int of_device_enable_path(const char *path); +int of_device_disable(struct device_node *node); +int of_device_disable_path(const char *path); + #endif /* __OF_H */ |