[PATCH v4 2/7] sysinfo: add sysinfo_get_and_detect() helper

Simon Glass sjg at chromium.org
Wed Jun 3 19:10:07 CEST 2026


On 2026-06-02T11:57:48, Alexander Feilke
<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>
>
> drivers/sysinfo/sysinfo-uclass.c | 10 ++++++++++
>  include/sysinfo.h                | 17 +++++++++++++++++
>  test/dm/sysinfo.c                | 16 ++++++++++++++++
>  3 files changed, 43 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list