]> git.baikalelectronics.ru Git - uboot.git/commit
usb: hub: Use 'struct usb_hub_device' as hub device's uclass_priv
authorBin Meng <bmeng.cn@gmail.com>
Wed, 19 Jul 2017 13:51:09 +0000 (21:51 +0800)
committerMarek Vasut <marex@denx.de>
Fri, 28 Jul 2017 21:34:29 +0000 (23:34 +0200)
commit88be1273494c6634768151a1971f0db1ac5b5b66
treeec6c915579a27f37ba35088f107dde21f98de735
parent1786f68fa591efeadca1d4d3a0400aeab6c957b8
usb: hub: Use 'struct usb_hub_device' as hub device's uclass_priv

Use USB hub device's dev->uclass_priv to point to 'usb_hub_device'
so that with driver model usb_hub_reset() and usb_hub_allocate()
are no longer needed.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/usb_hub.c
drivers/usb/host/usb-uclass.c