From: Nora Schiffer Date: Tue, 2 Jun 2026 11:57:49 +0000 (+0200) Subject: sysinfo: uclass: use sysinfo_priv size for per_device_auto X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=fa03ee371de84b512e6f941395d4e13040eedd17;p=thirdparty%2Fu-boot.git sysinfo: uclass: use sysinfo_priv size for per_device_auto 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 Reviewed-by: Simon Glass Signed-off-by: Alexander Feilke --- 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), };