projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
089ffd0
)
reset: Add reset valid
author
Jagan Teki
<jagan@amarulasolutions.com>
Mon, 6 Aug 2018 13:25:06 +0000
(18:55 +0530)
committer
Jagan Teki
<jagan@amarulasolutions.com>
Fri, 18 Jan 2019 16:49:09 +0000
(22:19 +0530)
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>
include/reset.h
patch
|
blob
|
history
diff --git
a/include/reset.h
b/include/reset.h
index bc495a90c2e99d9c565c3aa4dc0e5e730ecb514b..65aa7a4ce5e9d95661025f937076fbdd6cc68b7f 100644
(file)
--- a/
include/reset.h
+++ b/
include/reset.h
@@
-306,4
+306,15
@@
static inline int reset_release_bulk(struct reset_ctl_bulk *bulk)
}
#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