summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-02-03 16:01:20 +0300
committerSimon Glass <sjg@chromium.org>2021-03-22 09:23:27 +0300
commitea74c95103c66282b8c43e7893bdcd533cab220f (patch)
tree9abea76c49022e6409902b6fbf9bacea4ac83606 /drivers/misc
parent9763e4eb93bfcb5cc50edf13b152c231b218591f (diff)
downloadu-boot-ea74c95103c66282b8c43e7893bdcd533cab220f.tar.xz
dtoc: Generate uclass devices
Add support for generating a file containing uclass instances. This avoids the need to create these at run time. Update a test uclass to include a 'priv_auto' member, to increase test coverage. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/test_drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/test_drv.c b/drivers/misc/test_drv.c
index a2a77d36bb..f431a576f1 100644
--- a/drivers/misc/test_drv.c
+++ b/drivers/misc/test_drv.c
@@ -205,6 +205,7 @@ UCLASS_DRIVER(testfdt) = {
.name = "testfdt",
.id = UCLASS_TEST_FDT,
.flags = DM_UC_FLAG_SEQ_ALIAS,
+ .priv_auto = sizeof(struct dm_test_uc_priv),
};
static const struct udevice_id testfdtm_ids[] = {