summaryrefslogtreecommitdiff
path: root/include/reset.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-01-24 15:30:48 -0500
committerTom Rini <trini@konsulko.com>2019-01-24 15:30:48 -0500
commitd01806a8fcbdaedcc67cead56ece572021d97ab7 (patch)
tree8c893de10b80db16e01c2253a7cbb0a955123b76 /include/reset.h
parent68489ed037530ec29fc0bc452ad6e4b0c5db02ec (diff)
parent543049ab590620a91b37fa0296edd3bcddd0eba2 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-sunxi
Diffstat (limited to 'include/reset.h')
-rw-r--r--include/reset.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/reset.h b/include/reset.h
index bc495a90c2e..65aa7a4ce5e 100644
--- 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