diff options
author | David Howells <dhowells@redhat.com> | 2013-03-28 19:48:28 +0100 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2013-04-03 19:28:31 +0200 |
commit | 6a5d6943fe0e4b1e4c43c3aa1919360f68ae2f9a (patch) | |
tree | 9699df081c3ba3734dcca3fec525dc3d49e0e069 /drivers/usb/host/ohci-sa1111.c | |
parent | USB: driver.c: processing failure, maching resume condition with suspend cond... (diff) | |
download | linux-6a5d6943fe0e4b1e4c43c3aa1919360f68ae2f9a.tar.xz linux-6a5d6943fe0e4b1e4c43c3aa1919360f68ae2f9a.zip |
xhci: Use ilog2() rather than __ffs() for calculating SEGMENT_SHIFT
Use ilog2() rather than __ffs() for calculating SEGMENT_SHIFT as ilog2() can
be worked out at compile time, whereas __ffs() must be calculated at runtime.
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
cc: linux-usb@vger.kernel.org
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/ohci-sa1111.c')
0 files changed, 0 insertions, 0 deletions