[PATCH 1/6] sysinfo: uclass: use sysinfo_priv size for per_device_auto
Alexander Feilke
Alexander.Feilke at ew.tq-group.com
Fri May 8 10:48:29 CEST 2026
From: Nora Schiffer <nora.schiffer at ew.tq-group.com>
Reference the struct itself for the size as it is more robust,
even if it contains just a bool at the moment.
Signed-off-by: Nora Schiffer <nora.schiffer at ew.tq-group.com>
Signed-off-by: Alexander Feilke <alexander.feilke at ew.tq-group.com>
---
drivers/sysinfo/sysinfo-uclass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/sysinfo/sysinfo-uclass.c b/drivers/sysinfo/sysinfo-uclass.c
index f04998ef8bb..bf0f664e8dc 100644
--- a/drivers/sysinfo/sysinfo-uclass.c
+++ b/drivers/sysinfo/sysinfo-uclass.c
@@ -152,5 +152,5 @@ UCLASS_DRIVER(sysinfo) = {
.id = UCLASS_SYSINFO,
.name = "sysinfo",
.post_bind = dm_scan_fdt_dev,
- .per_device_auto = sizeof(bool),
+ .per_device_auto = sizeof(struct sysinfo_priv),
};
--
2.34.1
More information about the U-Boot
mailing list