diff options
author | Simon Glass <sjg@chromium.org> | 2020-10-25 20:38:35 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-10-29 14:42:18 -0600 |
commit | a8b1fbc14d064d7b14bf887730300f4dbf856473 (patch) | |
tree | 830f0f68cffeeb0cf1b82844f4a653d5bf3fcaf2 /drivers/misc | |
parent | e1e54ffe9956449d79697d31648217065e033045 (diff) | |
download | u-boot-a8b1fbc14d064d7b14bf887730300f4dbf856473.zip u-boot-a8b1fbc14d064d7b14bf887730300f4dbf856473.tar.gz u-boot-a8b1fbc14d064d7b14bf887730300f4dbf856473.tar.bz2 |
dm: test: Drop of-platdata pytest
Now that we have a C version of this test, drop the Python implementation.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/spltest_sandbox.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/drivers/misc/spltest_sandbox.c b/drivers/misc/spltest_sandbox.c index 9990316..3ae6707 100644 --- a/drivers/misc/spltest_sandbox.c +++ b/drivers/misc/spltest_sandbox.c @@ -8,43 +8,8 @@ #include <dm.h> #include <dt-structs.h> -static int sandbox_spl_probe(struct udevice *dev) -{ - struct dtd_sandbox_spl_test *plat = dev_get_platdata(dev); - int i; - - printf("of-platdata probe:\n"); - printf("bool %d\n", plat->boolval); - - printf("byte %02x\n", plat->byteval); - printf("bytearray"); - for (i = 0; i < sizeof(plat->bytearray); i++) - printf(" %02x", plat->bytearray[i]); - printf("\n"); - - printf("int %d\n", plat->intval); - printf("intarray"); - for (i = 0; i < ARRAY_SIZE(plat->intarray); i++) - printf(" %d", plat->intarray[i]); - printf("\n"); - - printf("longbytearray"); - for (i = 0; i < sizeof(plat->longbytearray); i++) - printf(" %02x", plat->longbytearray[i]); - printf("\n"); - - printf("string %s\n", plat->stringval); - printf("stringarray"); - for (i = 0; i < ARRAY_SIZE(plat->stringarray); i++) - printf(" \"%s\"", plat->stringarray[i]); - printf("\n"); - - return 0; -} - U_BOOT_DRIVER(sandbox_spl_test) = { .name = "sandbox_spl_test", .id = UCLASS_MISC, .flags = DM_FLAG_PRE_RELOC, - .probe = sandbox_spl_probe, }; |