[U-Boot] [PATCH v2 4/4] dm: usb: Rename usb_find_child to usb_find_emul_child

Simon Glass sjg at chromium.org
Tue Jul 7 20:35:08 CEST 2015


On 3 July 2015 at 17:06, Simon Glass <sjg at chromium.org> wrote:
> 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>

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list