dm: uclass: Add uclass_next_device_err() to return a valid device
authorPatrice Chotard <patrice.chotard@st.com>
Wed, 24 Oct 2018 12:10:15 +0000 (14:10 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 16 Nov 2018 21:51:55 +0000 (16:51 -0500)
commitf6abd5389ceab5fce185126c2364a324465fafbe
tree2b3387cdadc4dd9649b5f0b3785d5d945d8b2ca0
parent8bbb5b20852aa81024eb7b2dcc3eb58275e83bb0
dm: uclass: Add uclass_next_device_err() to return a valid device

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@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/uclass.c
include/dm/uclass.h