]> git.dujemihanovic.xyz Git - u-boot.git/commit
w1: Fix bus counting in w1_get_bus
authorMichal Suchanek <msuchanek@suse.de>
Wed, 12 Oct 2022 19:57:57 +0000 (21:57 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Oct 2022 03:17:12 +0000 (21:17 -0600)
commit9244645f929bdff2ce87d1d967a78a0e05cebd80
tree493dabe6d44f179674ea1365c4f036eb0f67ed07
parentf42642347120d988e7cf6986139e7ec68e36bc6b
w1: Fix bus counting in w1_get_bus

Use uclass_first_device_check/uclass_next_device_check to correctly
count buses that fail to probe.

Fixes: d3e19cf919 ("w1: Add 1-Wire uclass")
Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/w1/w1-uclass.c