diff options
author | Simon Glass <sjg@chromium.org> | 2022-05-08 04:39:23 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2022-06-28 03:09:52 +0100 |
commit | 53c20bebb2215caaadc58b2eee2c80c61456b93d (patch) | |
tree | 8bedcb50eb2ef1ef4e4f21d9c7d21bf0d85d6935 /drivers | |
parent | d32f62f49d338e68c2d793a9e2412677a740c89f (diff) |
dm: core: Switch the testbus driver to use a new struct
At present this driver uses 'priv' struct to hold 'plat' data, which is
confusing. The contents of the strct don't matter, since only dtoc is
using it. Create a new struct with the correct name.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/misc/test_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/test_drv.c b/drivers/misc/test_drv.c index 5d72982f25..b6df118903 100644 --- a/drivers/misc/test_drv.c +++ b/drivers/misc/test_drv.c @@ -109,7 +109,7 @@ UCLASS_DRIVER(testbus) = { .child_post_probe = testbus_child_post_probe_uclass, /* This is for dtoc testing only */ - .per_device_plat_auto = sizeof(struct dm_test_uclass_priv), + .per_device_plat_auto = sizeof(struct dm_test_uclass_plat), }; static int testfdt_drv_ping(struct udevice *dev, int pingval, int *pingret) |