Merge remote-tracking branches 'regulator/topic/max77686', 'regulator/topic/max77693', 'regulator/topic/max77802', 'regulator/topic/power-off' and 'regulator/topic/rk808' into regulator-next
This commit is contained in:
commit
92d07a8ff6
40 changed files with 623 additions and 313 deletions
|
@ -922,4 +922,15 @@ static inline int of_changeset_update_property(struct of_changeset *ocs,
|
|||
/* CONFIG_OF_RESOLVE api */
|
||||
extern int of_resolve_phandles(struct device_node *tree);
|
||||
|
||||
/**
|
||||
* of_device_is_system_power_controller - Tells if system-power-controller is found for device_node
|
||||
* @np: Pointer to the given device_node
|
||||
*
|
||||
* return true if present false otherwise
|
||||
*/
|
||||
static inline bool of_device_is_system_power_controller(const struct device_node *np)
|
||||
{
|
||||
return of_property_read_bool(np, "system-power-controller");
|
||||
}
|
||||
|
||||
#endif /* _LINUX_OF_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue