dm: core: Add function to access uclass priv

Add functions so this information is not accessed directly. This will be
needed for of-platdata which stores it in a different place.

Signed-off-by: Simon Glass <sjg@chromium.org>
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c
index 6409457..5e24927 100644
--- a/drivers/core/uclass.c
+++ b/drivers/core/uclass.c
@@ -160,6 +160,16 @@
 	return uc->uc_drv->name;
 }
 
+void *uclass_get_priv(const struct uclass *uc)
+{
+	return uc->priv;
+}
+
+void uclass_set_priv(struct uclass *uc, void *priv)
+{
+	uc->priv = priv;
+}
+
 enum uclass_id uclass_get_by_name(const char *name)
 {
 	int i;