From: Sarah Sharp Date: Wed, 15 Dec 2010 19:56:29 +0000 (-0800) Subject: xhci: Rename variables and reduce register reads. X-Git-Tag: v2.6.39-rc1~472^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=518e848ea8e2932ce18ce2daef8ad5f55a145f27;p=pandora-kernel.git xhci: Rename variables and reduce register reads. The xhci_bus_suspend() and xhci_bus_resume() functions are a bit hard to read, because they have an ambiguously named variable "port". Rename it to "port_index". Introduce a new temporary variable, "max_ports" that holds the maximum number of roothub ports the host controller supports. This will reduce the number of register reads, and make it easy to change the maximum number of ports when there are two roothubs. Signed-off-by: Sarah Sharp --- Reading git-diff-tree failed