diff options
| author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-08-05 08:40:44 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-12 14:23:53 -0400 |
| commit | 5c19e95216b93b0d29c6a4887e69a980edc6fc81 (patch) | |
| tree | 345252b59a83bec24735caa96beead84f38a107d /include/linux/of.h | |
| parent | a324e4de0ce5c467b33a54ed65cc2f41c68855ae (diff) | |
OF: Add helper for matching against linux,stdout-path
devicetrees may have a linux,stdout-path property in the chosen
node describing the console device. This adds a helper function
to match a device against this property so a driver can call
add_preferred_console for a matching device.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/of.h')
| -rw-r--r-- | include/linux/of.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 1fd08ca23106..429e16801858 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
| @@ -343,6 +343,8 @@ const char *of_prop_next_string(struct property *prop, const char *cur); | |||
| 343 | s; \ | 343 | s; \ |
| 344 | s = of_prop_next_string(prop, s)) | 344 | s = of_prop_next_string(prop, s)) |
| 345 | 345 | ||
| 346 | int of_device_is_stdout_path(struct device_node *dn); | ||
| 347 | |||
| 346 | #else /* CONFIG_OF */ | 348 | #else /* CONFIG_OF */ |
| 347 | 349 | ||
| 348 | static inline const char* of_node_full_name(struct device_node *np) | 350 | static inline const char* of_node_full_name(struct device_node *np) |
| @@ -505,6 +507,11 @@ static inline int of_machine_is_compatible(const char *compat) | |||
| 505 | return 0; | 507 | return 0; |
| 506 | } | 508 | } |
| 507 | 509 | ||
| 510 | static inline int of_device_is_stdout_path(struct device_node *dn) | ||
| 511 | { | ||
| 512 | return 0; | ||
| 513 | } | ||
| 514 | |||
| 508 | #define of_match_ptr(_ptr) NULL | 515 | #define of_match_ptr(_ptr) NULL |
| 509 | #define of_match_node(_matches, _node) NULL | 516 | #define of_match_node(_matches, _node) NULL |
| 510 | #define of_property_for_each_u32(np, propname, prop, p, u) \ | 517 | #define of_property_for_each_u32(np, propname, prop, p, u) \ |
