mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-29 09:45:52 +00:00
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>
This commit is contained in:
parent
d32f62f49d
commit
53c20bebb2
3 changed files with 9 additions and 2 deletions
|
@ -109,7 +109,7 @@ UCLASS_DRIVER(testbus) = {
|
||||||
.child_post_probe = testbus_child_post_probe_uclass,
|
.child_post_probe = testbus_child_post_probe_uclass,
|
||||||
|
|
||||||
/* This is for dtoc testing only */
|
/* 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)
|
static int testfdt_drv_ping(struct udevice *dev, int pingval, int *pingret)
|
||||||
|
|
|
@ -92,6 +92,13 @@ struct dm_test_uclass_priv {
|
||||||
int total_add;
|
int total_add;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* struct dm_test_uclass_plat - private plat data for test uclass
|
||||||
|
*/
|
||||||
|
struct dm_test_uclass_plat {
|
||||||
|
char dummy[32];
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct dm_test_parent_data - parent's information on each child
|
* struct dm_test_parent_data - parent's information on each child
|
||||||
*
|
*
|
||||||
|
|
|
@ -616,7 +616,7 @@ struct dm_test_pdata __attribute__ ((section (".priv_data")))
|
||||||
u8 _denx_u_boot_test_bus_priv_some_bus[sizeof(struct dm_test_priv)]
|
u8 _denx_u_boot_test_bus_priv_some_bus[sizeof(struct dm_test_priv)]
|
||||||
\t__attribute__ ((section (".priv_data")));
|
\t__attribute__ ((section (".priv_data")));
|
||||||
#include <dm/test.h>
|
#include <dm/test.h>
|
||||||
u8 _denx_u_boot_test_bus_ucplat_some_bus[sizeof(struct dm_test_uclass_priv)]
|
u8 _denx_u_boot_test_bus_ucplat_some_bus[sizeof(struct dm_test_uclass_plat)]
|
||||||
\t__attribute__ ((section (".priv_data")));
|
\t__attribute__ ((section (".priv_data")));
|
||||||
#include <test.h>
|
#include <test.h>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue