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..c55b50018ac4 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_device_is_system_power_controller - Tells if system-power-controller 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_device_is_system_power_controller(const struct device_node *np) | ||
| 932 | { | ||
| 933 | return of_property_read_bool(np, "system-power-controller"); | ||
| 934 | } | ||
| 935 | |||
| 925 | #endif /* _LINUX_OF_H */ | 936 | #endif /* _LINUX_OF_H */ |
