diff options
Diffstat (limited to 'include/linux/of.h')
-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 29f0adc5f3e4..364a15858746 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
@@ -922,4 +922,15 @@ static inline int of_changeset_update_property(struct of_changeset *ocs, | |||
922 | /* CONFIG_OF_RESOLVE api */ | 922 | /* CONFIG_OF_RESOLVE api */ |
923 | extern int of_resolve_phandles(struct device_node *tree); | 923 | extern int of_resolve_phandles(struct device_node *tree); |
924 | 924 | ||
925 | /** | ||
926 | * of_system_has_poweroff_source - Tells if poweroff-source is found for device_node | ||
927 | * @np: Pointer to the given device_node | ||
928 | * | ||
929 | * return true if present false otherwise | ||
930 | */ | ||
931 | static inline bool of_system_has_poweroff_source(const struct device_node *np) | ||
932 | { | ||
933 | return of_property_read_bool(np, "poweroff-source"); | ||
934 | } | ||
935 | |||
925 | #endif /* _LINUX_OF_H */ | 936 | #endif /* _LINUX_OF_H */ |