diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/of.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h index 6545e7aec7bb..27b3ba1e9e59 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
| @@ -866,4 +866,15 @@ static inline int of_changeset_update_property(struct of_changeset *ocs, | |||
| 866 | /* CONFIG_OF_RESOLVE api */ | 866 | /* CONFIG_OF_RESOLVE api */ |
| 867 | extern int of_resolve_phandles(struct device_node *tree); | 867 | extern int of_resolve_phandles(struct device_node *tree); |
| 868 | 868 | ||
| 869 | /** | ||
| 870 | * of_system_has_poweroff_source - Tells if poweroff-source is found for device_node | ||
| 871 | * @np: Pointer to the given device_node | ||
| 872 | * | ||
| 873 | * return true if present false otherwise | ||
| 874 | */ | ||
| 875 | static inline bool of_system_has_poweroff_source(const struct device_node *np) | ||
| 876 | { | ||
| 877 | return of_property_read_bool(np, "poweroff-source"); | ||
| 878 | } | ||
| 879 | |||
| 869 | #endif /* _LINUX_OF_H */ | 880 | #endif /* _LINUX_OF_H */ |
