Skip to content

Commit

Permalink
of_reset_control_get_exclusive helper
Browse files Browse the repository at this point in the history
Signed-off-by: Olliver Schinagl <[email protected]>
  • Loading branch information
oliv3r committed Feb 8, 2018
1 parent 14d6182 commit ac68ebb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions include/linux/reset.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,23 @@ static inline struct reset_control *of_reset_control_get_exclusive(
return __of_reset_control_get(node, id, 0, false, false);
}

/**
* of_reset_control_get_exclusive - Lookup and obtain an exclusive reference
* to an optional reset controller.
* @node: device to be reset by the controller
* @id: reset line name
*
* Returns a struct reset_control, NULL when not found or IS_ERR() condition
* containing errno.
*
* Use of id names is optional.
*/
static inline struct reset_control *of_reset_control_get_optional_exclusive(
struct device_node *node, const char *id)
{
return __of_reset_control_get(node, id, 0, false, true);
}

/**
* of_reset_control_get_shared - Lookup and obtain an shared reference
* to a reset controller.
Expand Down

0 comments on commit ac68ebb

Please sign in to comment.