summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNora Schiffer <[email protected]>2026-06-02 13:57:49 +0200
committerFabio Estevam <[email protected]>2026-06-05 12:56:32 -0300
commitfa03ee371de84b512e6f941395d4e13040eedd17 (patch)
tree08f363077e0b51dd0ad4795d1cedbe45afe2e9df /drivers
parent79b5f41d57127baf6a6be8366d265420456dcee0 (diff)
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 <[email protected]> Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Alexander Feilke <[email protected]>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/sysinfo/sysinfo-uclass.c2
1 files changed, 1 insertions, 1 deletions
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),
};