commit | 5ecfd5d6c06408343da01ef892f53c563ffffede | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Wed Jul 19 21:51:11 2017 +0800 |
committer | Marek Vasut <marex@denx.de> | Fri Jul 28 23:34:30 2017 +0200 |
tree | 68584c48afb9880819e0b16eb985f047ce047092 | |
parent | 2eee7942c4fda762d91b5b3b0087a827b43486ae [diff] |
usb: hub: Add a new API to test if a hub device is root hub Sometimes we need know if a given hub device is root hub or not. Add a new API to test this. This removes the xHCI driver's own version is_root_hub() and change to use the new API. While we are here, remove the unused/commented out get_usb_device() in the xHCI driver too. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>