]> git.baikalelectronics.ru Git - uboot.git/commit
dm: blk: Do not use uclass_next_device_err
authorMichal Suchanek <msuchanek@suse.de>
Wed, 12 Oct 2022 19:58:01 +0000 (21:58 +0200)
committerSimon Glass <sjg@chromium.org>
Tue, 18 Oct 2022 03:17:12 +0000 (21:17 -0600)
commitd0e430dff1ca72a7c2c1a946400e3a9659ca1047
tree0a3317839b349c0fe6a31ab82cbf15fb1ab27dd0
parentb621c749d07bd9aaac5a52fc0fcf1ccb1a27b1e0
dm: blk: Do not use uclass_next_device_err

blk_first_device_err/blk_next_device_err uses
uclass_first_device_err/uclass_next_device_err for device iteration.

Although the function names superficially match the return value from
uclass_first_device_err/uclass_next_device_err is never used
meaningfully, and uclass_first_device/uclass_next_device works equally
well for this purpose.

In the following patch the semantic of
uclass_first_device_err/uclass_next_device_err will be changed to be
based on uclass_first_device_check/uclass_next_device_check breaking
this sole user that uses uclass_next_device_err for iteration.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/block/blk-uclass.c