summaryrefslogtreecommitdiff
path: root/include/dm/uclass.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dm/uclass.h')
-rw-r--r--include/dm/uclass.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/dm/uclass.h b/include/dm/uclass.h
index fde08fe157a..20d4b9e6832 100644
--- a/include/dm/uclass.h
+++ b/include/dm/uclass.h
@@ -115,6 +115,14 @@ struct uclass_driver {
ll_entry_declare(struct uclass_driver, __name, uclass_driver)
/**
+ * uclass_get_priv() - Get the private data for a uclass
+ *
+ * @uc Uclass to check
+ * @return private data, or NULL if none
+ */
+void *uclass_get_priv(const struct uclass *uc);
+
+/**
* uclass_get() - Get a uclass based on an ID, creating it if needed
*
* Every uclass is identified by an ID, a number from 0 to n-1 where n is