Commit 652ee278 authored by Jagan Teki's avatar Jagan Teki

reset: Add reset valid

Add reset_valid to check whether given reset is valid
or not.

Cc: Simon Glass <>
Signed-off-by: Jagan Teki's avatarJagan Teki <>
parent 089ffd0a
......@@ -306,4 +306,15 @@ static inline int reset_release_bulk(struct reset_ctl_bulk *bulk)
* reset_valid() - check if reset is valid
* @reset_ctl: the reset to check
* @return TRUE if valid, or FALSE
static inline bool reset_valid(struct reset_ctl *reset_ctl)
return !!reset_ctl->dev;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment