[PATCH v2 2/6] sysinfo: add sysinfo_get_and_detect() helper
Simon Glass
sjg at chromium.org
Wed May 27 03:16:05 CEST 2026
Hi Nora,
On 2026-05-26T12:40:39, Feilke, Alexander
<Alexander.Feilke at ew.tq-group.com> wrote:
> sysinfo: add sysinfo_get_and_detect() helper
>
> sysinfo_detect() is commonly called after sysinfo_get(). Make the API a
> bit more convenient to use by introducing a helper.
>
> Signed-off-by: Nora Schiffer <nora.schiffer at ew.tq-group.com>
> Signed-off-by: Alexander Feilke <alexander.feilke at ew.tq-group.com>
>
> include/sysinfo.h | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
> diff --git a/include/sysinfo.h b/include/sysinfo.h
> @@ -373,6 +373,26 @@ int sysinfo_get_data_by_index(struct udevice *dev, int id, int index,
> +/**
> + * sysinfo_get_and_detect() - Get the sysinfo device and runs its detect
> + * operation.
Please use 'Get the sysinfo device and run its detect operation' to
keep it imperative.
Regards,
Simon
More information about the U-Boot
mailing list