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 <nora.schiffer@ew.tq-group.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Feilke <alexander.feilke@ew.tq-group.com>
This commit is contained in:
Nora Schiffer
2026-06-02 13:57:49 +02:00
committed by Fabio Estevam
parent 79b5f41d57
commit fa03ee371d

View File

@@ -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),
};