mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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:
committed by
Fabio Estevam
parent
79b5f41d57
commit
fa03ee371d
@@ -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),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user