[U-Boot] [PATCH v2 4/4] dm: usb: Rename usb_find_child to usb_find_emul_child
Simon Glass
sjg at chromium.org
Sat Jul 4 01:06:13 CEST 2015
On 1 July 2015 at 12:53, Hans de Goede <hdegoede at redhat.com> wrote:
> Now that we unbind usb devices from usb_stop() usb_find_child() is
> only necessary to deal with emulated usb devices.
>
> Rename it to make this clear and add a #ifdef to make it a nop in
> other cases.
>
> Note the #ifdef turns usb_find_emul_child() into a nop, rather then not
> building it and adding another #ifdef to the caller, this is done this way
> because adding a #ifdef to the caller is somewhat hairy.
>
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> ---
> drivers/usb/host/usb-uclass.c | 19 +++++++++----------
> 1 file changed, 9 insertions(+), 10 deletions(-)
Acked-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list