]> git.sur5r.net Git - u-boot/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)
commitdfa96e06761e223288e59d7a3e1d574f014b5a0d
treeec6c915579a27f37ba35088f107dde21f98de735
parent5e941943d88aebcfc2e9c8a0801061d39e218bb5
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