From e564f054af002d9e6a1080ed9d4bc2c6052a4435 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 5 Mar 2015 12:25:20 -0700 Subject: dm: core: Add dev_get_uclass_priv() to access uclass private data Add a convenience function to access the private data that a uclass stores for each of its devices. Convert over most existing uses for consistency and to provide an example for others. Signed-off-by: Simon Glass --- test/dm/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/dm/core.c') diff --git a/test/dm/core.c b/test/dm/core.c index eccda09..7be28e4 100644 --- a/test/dm/core.c +++ b/test/dm/core.c @@ -179,7 +179,7 @@ static int dm_test_autoprobe(struct dm_test_state *dms) ut_assertok(uclass_find_device(UCLASS_TEST, i, &dev)); ut_assert(dev); - priv = dev->uclass_priv; + priv = dev_get_uclass_priv(dev); ut_assert(priv); ut_asserteq(expected_base_add, priv->base_add); -- cgit v1.1