diff options
author | Simon Glass | 2021-02-03 06:01:20 -0700 |
---|---|---|
committer | Simon Glass | 2021-03-22 19:23:27 +1300 |
commit | ea74c95103c66282b8c43e7893bdcd533cab220f (patch) | |
tree | 9abea76c49022e6409902b6fbf9bacea4ac83606 /drivers/misc | |
parent | 9763e4eb93bfcb5cc50edf13b152c231b218591f (diff) |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/test_drv.c b/drivers/misc/test_drv.c index a2a77d36bbf..f431a576f19 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[] = { |