]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: move the common code to a function to get max ports and port array
authorhuajun li <huajun.li.lee@gmail.com>
Tue, 3 May 2011 13:11:00 +0000 (21:11 +0800)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Thu, 12 May 2011 19:54:22 +0000 (12:54 -0700)
commit75d8a91b248e36fb87fdbc9c0b7625f90712b722
treea6ce2a417d3b9e921cdd0e5bc56ad1637e8500ba
parent51333ad057cc8866b2e920fc8ad9bc7104e63604
xhci: move the common code to a function to get max ports and port array

There are several functions using same code to get max ports and port array,
this patch moves the common code to a function in order to reuse them easily.

Signed-off-by: Huajun Li <huajun.li.lee@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-hub.c