mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-24 06:24:17 +00:00
reset: Add reset valid
Add reset_valid to check whether given reset is valid or not. Cc: Simon Glass <sjg@chromium.org> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
This commit is contained in:
parent
089ffd0aed
commit
652ee2788f
1 changed files with 11 additions and 0 deletions
|
@ -306,4 +306,15 @@ static inline int reset_release_bulk(struct reset_ctl_bulk *bulk)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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;
|
||||||
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue