[U-Boot] [PATCH v4 03/11] dm: uclass: Add uclass_next_device_err() to return a valid device

Simon Glass sjg at chromium.org
Sat Nov 3 06:07:31 UTC 2018


On 24 October 2018 at 06:10, Patrice Chotard <patrice.chotard at st.com> wrote:
> Similarly to uclass_first_device_err(), add uclass_next_device_err()
> which returns an error if there are no next devices in that uclass.
>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---
>
> Changes in v4: None
> Changes in v3: None
> Changes in v2: None
>
>  drivers/core/uclass.c | 13 +++++++++++++
>  include/dm/uclass.h   | 12 ++++++++++++
>  2 files changed, 25 insertions(+)

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

We probably should have something that calls it for testing purposes,
but I suspect that comes in a future patch.


More information about the U-Boot mailing list