summaryrefslogtreecommitdiff
path: root/common/cros_ec.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-03-05 12:25:20 -0700
committerSimon Glass <sjg@chromium.org>2015-04-16 19:27:42 -0600
commite564f054af002d9e6a1080ed9d4bc2c6052a4435 (patch)
tree7b945d568d32c7febf5a8b70c6bce26b5157663c /common/cros_ec.c
parent106cce9604306743c86addd4d27426cce498c9d1 (diff)
downloadu-boot-e564f054af002d9e6a1080ed9d4bc2c6052a4435.tar.gz
u-boot-e564f054af002d9e6a1080ed9d4bc2c6052a4435.tar.bz2
u-boot-e564f054af002d9e6a1080ed9d4bc2c6052a4435.zip
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 <sjg@chromium.org>
Diffstat (limited to 'common/cros_ec.c')
-rw-r--r--common/cros_ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cros_ec.c b/common/cros_ec.c
index bb299bccff..64b46796ef 100644
--- a/common/cros_ec.c
+++ b/common/cros_ec.c
@@ -35,7 +35,7 @@ struct cros_ec_dev *board_get_cros_ec_dev(void)
debug("%s: Error %d\n", __func__, ret);
return NULL;
}
- return dev->uclass_priv;
+ return dev_get_uclass_priv(dev);
#else
return local.cros_ec_dev;
#endif