[U-Boot] [PATCH v4 1/9] dm: usb: Make usb_get_bus easier to use for callers

Simon Glass sjg at chromium.org
Tue May 5 19:41:57 CEST 2015


On 5 May 2015 at 03:54, Hans de Goede <hdegoede at redhat.com> wrote:
> Make usb_get_bus easier to use for callers, by directly returning the bus
> rather then returning it via a pass-by-ref argument.
>
> This also removes the error checking from the current callers, as
> we already have an assert() for bus not being NULL in usb_get_bus().
>
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> Acked-by: Simon Glass <sjg at chromium.org>
> ---
> Changes in v2:
> -New patch in v2 of this patch-set
> Changes in v4:
> -Moved this patch to be the first of the patch-set so that it can be used in
>  "dm: usb: Copy over usb_device values from usb_scan_device() to final usb_device"
> ---
>  drivers/usb/host/usb-uclass.c | 17 ++++-------------
>  include/usb.h                 |  7 +++----
>  2 files changed, 7 insertions(+), 17 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list